Image processing device, robot, robot system, and marker

ABSTRACT

An image processing device that detects a marker, in which the marker includes a first figure in which three or more figure centers are overlapped with each other and a data area provided on an internal or external portion of the first figure, and the image processing device detects the first figure and detects the data area based on the figure centers of the first figure.

BACKGROUND

1. Technical Field

The invention relates to an image processing device, a robot, a robotsystem, and a marker.

2. Related Art

There has been research and development on a robot that detects a markeror a target object from an image and performs work according to adetected marker or a detected target object.

Relating to this, a two-dimensional code including a marker configuredwith an area of a first color and an area of a second color adjacent toeach other and a data matrix formed from binary data cells arranged in amatrix form is known (see JP-A-2013-84031).

An image detection method for binarizing a captured image using athreshold value for enabling a marker to be identified, detecting amarker candidate from the binarized captured image, and excluding markercandidates detected by incorrect recognition from the detected markercandidates is known (see JP-A-2007-304732).

However, since the two-dimensional code illustrated in JP-A-2013-84031has to be detected based on the area of the first color and the area ofthe second color in the captured image including the aforementionedtwo-dimensional code, there have been cases where the detection hasfailed due to external factors such as dirt in these areas, variation ofthe aforementioned area with time, or variation of image capturingconditions such as ambient light at the time of capturing theaforementioned captured image.

In the image detection method in JP-A-2007-304732, there have been caseswhere it has been difficult to have compatibility between improvement inthe detection accuracy of the marker and shortening of the detectiontime of the marker without detecting the aforementioned marker by adetection method appropriate for each of plural markers included in acaptured image.

In this image detection method, there are cases where a threshold valuefor binarizing the aforementioned captured image in which can detect allmarkers are included in the captured image cannot be selected as athreshold value appropriate for detecting the marker, and thus there arecases where not all the markers included in the aforementioned capturedimage can be detected. As a result, in the aforementioned imagedetection method, there are cases where it is difficult to improve theaccuracy of detecting the marker from the aforementioned captured image.

SUMMARY

An advantage of some aspects of the invention is to solve at least apart of the problems described above, and the invention can beimplemented as the following aspects or application examples.

Application Example 1

This application example is directed to an image processing device thatdetects a marker, in which the marker includes a first figure in whichthree or more figure centers are overlapped with each other and a dataarea provided on an internal or external portion of the first figure,and the image processing device detects the first figure and detects thedata area based on the figure centers of the first figure.

According to this configuration, the image processing device detects thefirst figure and detects the data area based on the figure centers ofthe aforementioned first figure. Accordingly, the image processingdevice can suppress failure of detection of the marker due to externalfactors for the marker.

Application Example 2

The image processing device according to the application example may beconfigured such that the image processing device detects the data areabased on a direction passing through the figure centers of the firstfigure.

According to this configuration, the image processing device detects thedata area based on a direction passing through the figure centers of thefirst figure. Accordingly, the image processing device can more reliablydetect the data area based on a direction passing through the figurecenters of the first figure.

Application Example 3

The image processing device according to the application example may beconfigured such that the data area is detected by changing the directionwith the figure centers of the first figure as a center.

According to this configuration, the image processing device detects thedata area by changing the direction passing through the figure centersof the aforementioned first figures with the figure centers of the firstfigure as a center. Accordingly, the image processing device detects thedata area, even in a case where the direction in which the first figurepasses through the figure centers of the aforementioned first figure isnot illustrated.

Application Example 4

The image processing device according to the application example may beconfigured such that the data area has a figure having a smaller numberof the overlapped figure centers compared with the first figure.

According to this configuration, the image processing device detects thefirst figure and detects the data area having a smaller number ofoverlapped figure centers compared with the aforementioned first figure.Accordingly, the image processing device can suppress the figure thatthe data area has from being erroneously detected as the first figure.

Application Example 5

The image processing device according to the application example may beconfigured such that the marker has a second figure in which three ormore figure centers are overlapped with each other, and the data area ispositioned between the first figure and the second figure.

According to this configuration, the image processing device detects thefirst figure and the second figure and detects the data area based onthe figure centers of the aforementioned first figure and the figurecenters of the aforementioned second figure. Accordingly, the imageprocessing device can more reliably detect the data area.

Application Example 6

The image processing device according to the application example may beconfigured such that the data area is detected based on a direction inwhich the figure centers of the first figure and the figure centers ofthe second figure are connected to each other.

According to this configuration, the image processing device detects thedata area based on the direction in which the figure centers of thefirst figure and the figure centers of the second figure are connectedto each other. Accordingly, the image processing device can more quicklydetect the data area based on the direction in which the figure centersof the first figure and the figure centers of the second figure areconnected to each other.

Application Example 7

This application example is directed to a robot including the imageprocessing device according to any one of the application examplesdescribed above.

According to this configuration, the robot detects the first figure anddetects the data area based on the figure centers of the aforementionedfirst figure. Accordingly, the robot can suppress the failure of thedetection of the marker due to an external factor for the marker.

Application Example 8

This application example is directed to a robot system including animage capturing portion capturing a captured image including a marker;and a robot according to Application Example 7.

According to this configuration, the robot system detects the firstfigure and detects the data area based on the figure centers of theaforementioned first figure. Accordingly, the robot system can suppressthe failure of the detection of the marker due to an external factor forthe marker.

Application Example 9

This application example is directed to a marker including a firstfigure in which three or more figure centers are overlapped with eachother, and a data area provided on an external portion of the firstfigure.

According to this configuration, the marker detects the first figure anddetects the data area based on the figure centers of the aforementionedfirst figure. Accordingly, the marker can suppress the failure of thedetection of the marker due to an external factor for the marker.

Application Example 10

The marker according to the application example may be configured toinclude a second figure in which three or more figure centers areoverlapped with each other, and a configuration in which the data areais positioned between the first figure and the second figure may beused.

According to this configuration, the marker detects the first figure andthe second figure and detects the data area based on the figure centersof the aforementioned first figure and the figure centers of theaforementioned second figure. Accordingly, the marker can more reliablydetect the data area.

According to the application examples described above, the imageprocessing device, the robot, and the robot system detect the firstfigure and detect the data area based on the figure centers of theaforementioned first figure. Accordingly, the image processing device,the robot, and the robot system can suppress the failure of thedetection of the marker due to an external factor for the marker.

The marker detects the first figure and detects the data area based onthe figure centers of the aforementioned first figure. Accordingly, themarker can suppress the failure of the detection of the marker due to anexternal factor for the marker.

Application Example 11

This application example is directed to an image processing device thatdetects a marker from a image in which a marker is captured, in whichthe marker is detectable by plural marker detection methods, and themarker is detected by one marker detection method among the pluralmarker detection methods.

According to this configuration, the image processing device detects themarker by one marker detection method among the plural marker detectionmethods. Accordingly, the image processing device can make improvementin detection accuracy of the marker and shortening of the detection timeof the marker be compatible with each other.

Application Example 12

The image processing device according to Application Example 11 may beconfigured such that the marker includes the first marker and the secondmarker, and the marker detection method of the first marker is differentfrom the marker detection method of the second marker.

According to this configuration, the image processing device detects thefirst marker and the second marker respectively by marker detectionmethods different from each other. Accordingly, the image processingdevice can detect the marker by the marker detection method according tothe marker.

Application Example 13

The image processing device according to Application Example 11 or 12may be configured such that the plural marker detection methods includethe first detection method for detecting the marker by changing thethreshold value for detecting the marker from the image in thepredetermined range.

According to this configuration, when the image processing devicedetects a marker associated with the first detection method from theplural markers, the image processing device detects the marker bychanging the threshold value for detecting the marker from the image inthe predetermined range. Accordingly, when the image processing devicedetects the marker associated with the first detection method among theplural markers, it is possible to improve the detection accuracy of themarker.

Application Example 14

The image processing device according to any one of Application Examples11 to 13 may be configured such that the plural marker detection methodsinclude a second detection method for detecting the marker using a valueobtained by maximum likelihood estimation, as the threshold value fordetecting the marker from the image.

According to this configuration, when the image processing devicedetects the marker associated with the second detection method among theplural markers, the image processing device detects the marker using thevalue obtained by maximum likelihood estimation as the threshold valuefor detecting the marker from the image. Accordingly, when the imageprocessing device detects the marker associated with the seconddetection method among the plural markers, it is possible to shorten thedetection time of the marker.

Application Example 15

The image processing device according to any one of Application Examples11 to 14 may be configured such that the plural marker detection methodsinclude a third detection method for detecting the marker using apredetermined value as the threshold value for detecting the marker fromthe image.

According to this configuration, when the image processing devicedetects the marker associated with the third detection method among theplural markers, the image processing device detects the marker using apredetermined value as the threshold value for detecting the marker fromthe image. Accordingly, when the image processing device detects themarker associated with the third detection method among the pluralmarkers, it is possible to shorten the detection time of the marker.

Application Example 16

The image processing device according to any one of Application Examples13 to 15 may be configured such that the threshold value is a thresholdvalue for binarizing the image.

According to this configuration, the image processing device detects themarker by the marker detection method using a threshold value fordetecting the marker from the image and that binarizes theaforementioned image. Accordingly, the image processing device can makethe improvement in the detection accuracy of the marker and theshortening of the detection time of the marker be compatible with eachother by the marker detection method using the threshold value forbinarizing the image.

Application Example 17

The image processing device according to any one of Application Examples13 to 16 may be configured such that the threshold value is a thresholdvalue for determining a color of the image.

According to this configuration, the image processing device detects themarker by the marker detection method using the threshold value fordetecting the marker from the image and for determining the color of theaforementioned image. Accordingly, the image processing device can makethe improvement in the detection accuracy of the marker and theshortening of the detection time of the marker to compatible with eachother, according to the marker detection method using the thresholdvalue for determining the color of the image.

Application Example 18

The image processing device according to any one of Application Examples11 to 17 may be configured such that the marker is detected based on atable in which markers and marker detection methods are associated witheach other.

According to this configuration, the image processing device detects themarker based on the table in which the markers and the marker detectionmethods are associated with each other. Accordingly, the imageprocessing device can make the improvement in the detection accuracy ofthe marker and the shortening of the detection time of the marker becompatible with each other, based on the table in which the markers andthe marker detection methods are associated with each other.

Application Example 19

The image processing device according to any one of Application Examples11 to 18 may be configured such that the marker detection method isdetermined based on the marker included in the image and a markerincluded in an image having different image capturing conditions fromthe image.

According to this configuration, the image processing device determinesthe marker detection method based on the marker included in the imageand the marker included in an image having a different image capturingcondition from the aforementioned image. Accordingly, the imageprocessing device can make the improvement in the detection accuracy ofthe marker and the shortening of the detection time of the marker becompatible with each other by the marker detection method determinedbased on the marker included in the image and the marker included in theimage having a different image capturing condition from theaforementioned image.

Application Example 20

The image processing device according to any one of Application Examples11 to 19 may be configured such that a threshold value for detecting themarker included in the image and a threshold value for detecting themarker included in an image having a different image capturing conditionfrom the image are displayed on the display portion and the markerdetection method can be edited.

According to this configuration, the image processing device causes thedisplay portion to display a threshold value for detecting the markerincluded in the image and a threshold value for detecting the markerincluded in the image having a different image capturing condition fromthe aforementioned image and can edit the marker detection method.Accordingly, the image processing device can make the improvement in thedetection accuracy of the marker and the shortening of the detectiontime of the marker be compatible with each other by the edited markerdetection method.

Application Example 21

This application example is directed to a robot including the imageprocessing device according to any one of Application Examples 11 to 20.

According to this configuration, the robot detects the marker by onemarker detection method among the plural marker detection methods.Accordingly, the robot can make the improvement in the detectionaccuracy of the marker and the shortening of the detection time of themarker be compatible with each other.

Application Example 22

This application example is directed to a robot system including animage capturing portion for capturing a range including a marker as animage and the robot according to Application Example 21.

According to this configuration, the robot system detects the marker byone marker detection method among the plural marker detection methods.Accordingly, the robot system can make the improvement in the detectionaccuracy of the marker and the shortening of the detection time of themarker be compatible with each other.

According to the above, the image processing device, the robot, and therobot system can detect a marker by one marker detection method amongthe plural marker detection methods. Accordingly, the image processingdevice, the robot, and the robot system can make the improvement in thedetection accuracy of the marker and the shortening of the detectiontime of the marker be compatible with each other.

Application Example 23

This application example is directed to an image processing devicedetects a marker for determining a first threshold value which is athreshold value for multivaluing at least a portion of an image in whichthe one or more markers are included based on the numbers of markersdetected from the image or an image different from the image.

According to this configuration, the image processing device determinesa first threshold value which is a threshold value for multivaluing atleast a portion of the image in which one or more markers are includedbased on the numbers of the markers detected from the aforementionedimage or an image different from the aforementioned image. Accordingly,the image processing device can detect the marker with high accuracy.

Application Example 24

The image processing device according to Application Example 23 may beconfigured such that the first threshold value is determined based onthe number of markers detected from the image according to the change ofthe second threshold value which is a temporary threshold value used fordetermining the first threshold value.

According to this configuration, the image processing device determinesthe first threshold value based on the number of markers detected fromthe image according to the change of the second threshold value which isthe temporary threshold value used for determining the first thresholdvalue. Accordingly, the image processing device can detect the markerwith high accuracy based on the first threshold value determined basedon the number of the markers detected from the image according to thechange of the second threshold value.

Application Example 25

The image processing device according to Application Example 24 may beconfigured such that the first threshold value is determined based onthe number of markers and the number of areas detected when the image ismultivalued using the second threshold value.

According to this configuration, the image processing device determinesthe first threshold value based on the number of markers and the numberof areas detected when the aforementioned image is multivalued using thesecond threshold value. Accordingly, the image processing device candetect the marker with high accuracy based on the first threshold valuedetermined based on the number of markers and the number of areasdetected when the aforementioned image is multivalued using the secondthreshold value.

Application Example 26

The image processing device according to any one of Application Examples23 to 25 may be configured such that the multivaluing is binarizing.

According to this configuration, the image processing device determinesa first threshold value which is a threshold value for binarizing atleast a portion of the image in which one or more markers are includedbased on the number of markers detected from the aforementioned image oran image different from the aforementioned image. Accordingly, the imageprocessing device can detect the marker from the image binarized usingthe first threshold value.

Application Example 27

The image processing device according to any one of Application Examples23 to 26 may be configured such that the marker is a figure centermarker.

According to this configuration, the image processing device determinesthe first threshold value which is a threshold value for multivaluing atleast a portion of the image in which one or more figure center markersare included, based on the number of markers of the aforementioned imageor an image different from the aforementioned image. Accordingly, theimage processing device can detect the figure center marker with highaccuracy.

Application Example 28

The image processing device according to any one of Application Examples23 to 27 may be configured such that the target object is detected fromthe image using the first threshold value.

According to this configuration, the image processing device detects thetarget object from the image using the first threshold value.Accordingly, the image processing device can detect the target objectwith high accuracy.

Application Example 29

This application example is directed to a robot including the imageprocessing device according to any one of Application Examples 23 to 28.

According to this configuration, the robot determines a first thresholdvalue which is a threshold value for multivaluing at least a portion ofthe image in which one or more markers are included, based on the numberof markers detected from the aforementioned image or an image differentfrom the aforementioned image. Accordingly, the robot can detect themarker with high accuracy.

Application Example 30

This application example is directed to a robot system including animage capturing portion that captures an image of a range including oneor more markers and the robot according to Application Example 29.

According to this configuration, the robot system determines a firstthreshold value which is a threshold value for multivaluing at least aportion of the image in which one or more markers are included based onthe number of markers detected from the aforementioned image or an imagedifferent from the aforementioned image. Accordingly, the robot systemcan detect the marker with high accuracy.

According to the above, the image processing device, the robot, and therobot system determine a first threshold value which is a thresholdvalue for multivaluing at least a portion of the image in which one ormore markers are included, based on the number of markers detected fromthe aforementioned image or an image different from the aforementionedimage.

Accordingly, the image processing device, the robot, and the robotsystem can detect the marker with high accuracy.

BRIEF DESCRIPTION OF THE DRAWINGS

The invention will be described with reference to the accompanyingdrawings, wherein like numbers reference like elements.

FIG. 1 is a configuration diagram illustrating an example of a robotaccording to a first embodiment.

FIG. 2 is a diagram illustrating an example of a hardware configurationof a robot control device.

FIG. 3 is a diagram illustrating an example of a functionalconfiguration of the robot control device.

FIG. 4 is a flow chart illustrating an example of a flow of processes ofa control portion causing a robot to perform a predetermined work.

FIG. 5 is a diagram illustrating a specific example of a marker Mkillustrated in FIG. 1.

FIG. 6 is a diagram for describing figure centers of a figure.

FIG. 7 is a diagram illustrating a first figure F1, as an example of afigure center marker.

FIG. 8 is a diagram illustrating a second figure F2 as another exampleof a figure center marker.

FIG. 9 is a diagram illustrating an example of a figure center markerhaving multiplicity of 3 that is configured with three figures that donot configure concentric circles.

FIG. 10 is a diagram illustrating an example of a figure center markerhaving multiplicity of 4 which is configured with four figures that donot configure concentric circles.

FIG. 11 is a diagram illustrating another example of a figure centermarker having multiplicity of 4 that is configured with four figuresthat do not configure concentric circles.

FIG. 12 is a flow chart illustrating a flow of processes of the robotcontrol device specifying whether the respective four code figuresdetected by the robot control device are any one of 16 types of codefigures.

FIG. 13 is a flow chart illustrating an example of a flow of a markerdetection process in Step S120 illustrated in FIG. 4.

FIG. 14 is a diagram exemplifying the figure center of the first figureF1 and the figure center of the second figure F2 that the marker Mk has,and respective figure centers of the four code figures included in thedata area.

FIG. 15 is a diagram illustrating an example of a marker according toModified Example 1 of the first embodiment.

FIG. 16 is a flow chart illustrating an example of the flow of themarker detection process executed by an image process portion inModified Example 1 according to the first embodiment.

FIG. 17 is a diagram visually describing an overview of processes ofSteps S410 to S430 in the flow chart illustrated in FIG. 16.

FIG. 18 is a diagram illustrating an example of the marker according toModified Example 2 of the first embodiment.

FIG. 19 is a flow chart illustrating an example of a flow of a markerdetection process executed by an image process portion according toModified Example 2 of the first embodiment.

FIG. 20 is a diagram illustrating an example of a marker according toModified Example 3 of the first embodiment.

FIG. 21 is a flow chart illustrating an example of a flow of a markerdetection process executed by the image process portion according toModified Example 3 of the first embodiment.

FIG. 22 is a diagram illustrating an example of a sign illustrating adata area for which a second detecting process portion searches aperiphery of the first figure F1 in Step S420 c.

FIG. 23 is a diagram illustrating an example of a marker according toModified Example 4 of the first embodiment.

FIG. 24 is flow chart illustrating an example of a flow of a markerdetection process that the image process portion executes, according toModified Example 4 of the first embodiment.

FIG. 25 is a diagram illustrating an example of a marker Mk2 that isdistorted in a degree capable of being corrected by affinetransformation in the captured image.

FIG. 26 is a diagram illustrating an example of a normal direction N1 ofthe marker Mk2 that is not distorted.

FIG. 27 is a diagram illustrating an example of the marker Mk in acaptured image in a case where the marker Mk is captured in a distortedmanner in a degree capable of being corrected by the affinetransformation.

FIG. 28 is a table illustrating an example of information relating to amarker Mk3 and a marker Mk4.

FIG. 29 is a configuration diagram illustrating an example of a robotaccording to the second embodiment.

FIG. 30 is a diagram illustrating an example of the figure centermarker.

FIG. 31 is a diagram illustrating another example of the figure centermarker.

FIG. 32 is a diagram illustrating an example of the captured imageincluding 64 figure center markers.

FIG. 33 is a diagram illustrating an example of a binarized image in acase where the robot control device binarizes a captured image G1illustrated in FIG. 32 based on luminance that is not appropriate fordetecting the marker.

FIG. 34 is a diagram of exemplifying each of the three or more figuresthat configures a portion of the figure center markers that is detectedby the robot control device from a binarized image G2 illustrated inFIG. 33.

FIG. 35 is a diagram illustrating an example of a binarized image in acase where the robot control device binarizes the captured image G1illustrated in FIG. 32 based on luminance appropriate for detecting themarker.

FIG. 36 is a diagram of exemplifying each of the three or more figuresthat configure the figure center markers detected by the robot controldevice from the binarized image G2 illustrated in FIG. 35.

FIG. 37 is a diagram illustrating an example of the hardwareconfiguration of the robot control device.

FIG. 38 is a diagram illustrating an example of the functionalconfiguration of the robot control device.

FIG. 39 is a diagram illustrating an example of the table in whichcorresponding information is stored.

FIG. 40 is a flow chart illustrating an example of a flow of a processin which a control portion causes the robot to perform a predeterminedwork.

FIG. 41 is a flow chart illustrating an example of the flow of themarker detection process in Step S70 illustrated in FIG. 40.

FIG. 42 is a flow chart illustrating an example of the flow of a firstdetect process in Step S1150 illustrated in FIG. 41.

FIG. 43 is a flow chart illustrating an example of a flow of a processin which the robot control device generates corresponding information.

FIG. 44 is a flow chart illustrating an example of a flow of a processin which the robot control device edits the corresponding informationbased on an operation received from the user.

FIG. 45 is a diagram illustrating an example of a flow of a determiningmethod by the user of the marker detection method.

FIG. 46 is a flow chart illustrating an example of a flow of a processin which the robot control device generates the correspondinginformation according to a modified example of the embodiment.

FIG. 47 is a diagram of exemplifying corresponding information for eachcondition that is generated for each of the sample images GS1 to GS3.

FIG. 48 is a diagram illustrating a process for generating correspondinginformation based on corresponding information for each condition.

FIG. 49 is a flow chart illustrating an example of a flow of adetermining method of a marker detection method by the user according toa modified example of the embodiment.

FIG. 50 is a configuration diagram illustrating an example of a robotaccording to the third embodiment.

FIG. 51 is a diagram illustrating an example of a captured imageincluding 64 figure center markers.

FIG. 52 is a diagram illustrating an example of a binarized image in acase where a robot control device binarizes the captured image G1illustrated in FIG. 51 based on luminance that is not appropriate fordetecting the marker.

FIG. 53 is a diagram of exemplifying each of the three or more figuresthat configures figure center markers that are detected by the robotcontrol device from the binarized image G2 illustrated in FIG. 52.

FIG. 54 is a diagram illustrating an example of a binarized image in acase where the robot control device binarizes the captured image G1illustrated in FIG. 51 based on luminance appropriate for detecting themarker.

FIG. 55 is a diagram of exemplifying each of the three or more figuresthat configure the figure center markers detected by the robot controldevice from the binarized image G2 illustrated in FIG. 54.

FIG. 56 is a diagram illustrating an example of a hardware configurationof the robot control device.

FIG. 57 is a diagram illustrating an example of the functionalconfiguration of the robot control device.

FIG. 58 is a flow chart illustrating an example of a flow of a processthat a control portion performs in order to determine the firstthreshold value.

FIG. 59 is a diagram illustrating an example of a graph in which thenumber of partial areas detected by an area detection portion in StepS2170 is plotted for each second threshold value.

FIG. 60 is a diagram illustrating a graph in which the number of thefigure center markers detected by a marker detecting portion in StepS2180 is plotted for each second threshold value.

FIG. 61 is a diagram illustrating an example of a graph in which anevaluation value calculated by an evaluation value calculating portionin Step S2180 is plotted for each second threshold value.

FIG. 62 is a flow chart illustrating an example of a flow of a processin which the control portion causes the robot to perform a predeterminedwork.

FIG. 63 is a diagram illustrating an example of a captured image inwhich a capture range including three trays of which circumferences aresurrounded by plural figure center markers is captured.

DESCRIPTION OF EXEMPLARY EMBODIMENTS First Embodiment

Hereinafter, a first embodiment according to the invention is describedwith reference to drawings. FIG. 1 is a configuration diagramillustrating an example of a robot 20 according to the first embodiment.

Configuration of Robot 20

First, a configuration of the robot 20 is described.

The robot 20 is a double arm robot including a first arm, a second arm,a support supporting the first arm and the second arm, and a robotcontrol device 30. The double arm robot is a robot including two armssuch as a first arm and a second arm in this example. The robot 20 is asingle arm robot, instead of a double arm robot. The single arm robot isa robot including one arm. For example, the single arm robot includesany one of a first arm and a second arm. The robot 20 may be a duplexarm robot including three or more arms, instead of a double arm robot.

The first arm includes a first end effector E1 and a first manipulatorM1.

In this example, the first end effector E1 is an end effector includingclaw portions that can grip an object. The first end effector E1 may beanother end effector such as an end effector including an electricscrewdriver, instead of the end effector including the aforementionedclaw portions.

The first end effector E1 is communicably connected to the robot controldevice 30 via cables. Accordingly, the first end effector E1 performs anoperation based on a control signal acquired from the robot controldevice 30. For example, cable communication via cables is performed bystandards such as Ethernet (Registered trademark) or universal serialbus (USB). The first end effector E1 may have a configuration connectedto the robot control device 30 via wireless communication performed bycommunication standard such as Wi-Fi (Registered trademark).

The first manipulator M1 includes seven joints and a first imagecapturing portion 21. The seven joints respectively include actuators(not illustrated). That is, the first arm including the firstmanipulator M1 is a seven shaft vertical articulation-type arm. Thefirst arm performs an operation in a degree of freedom of seven shaftsby operations in association with the support, the first end effectorE1, the first manipulator M1, and the actuators of respective sevenjoints included in the first manipulator M1. The first arm may have aconfiguration of being operated in a degree of freedom of six or lessshafts or may have a configuration of being operated in a degree offreedom of eight or more shafts.

In a case where the first arm is operated in a degree of freedom ofseven shafts, the first arm can take more postures than in a case of anoperation in a degree of freedom of 6 or less shafts. Accordingly, forexample, an operation becomes smoother, and thus the first arm caneasily avoid interference with an object existing around the first arm.In a case where the first arm can be operated in a degree of freedom ofseven shafts, the control of the first arm has a less calculation amountand is easier than in a case where the first arm is operated in a degreeof freedom of eight or more shafts.

The seven actuators (included in the joints) included in the firstmanipulator M1 are respectively communicably connected to the robotcontrol device 30 via cables. Accordingly, the aforementioned actuatorsoperates the first manipulator M1 based on a control signal acquiredfrom the robot control device 30. The cable communication via the cablesis performed, for example, by standards such as Ethernet (Registeredtrademark) or USB. A portion or all of the seven actuators included inthe first manipulator M1 may have a configuration of being connected tothe robot control device 30 via wireless communication performed bycommunication standard such as Wi-Fi (Registered trademark).

The first image capturing portion 21 is, for example, a camera includinga charge coupled device (CCD) or a complementary metal oxidesemiconductor (CMOS) or the like, which is an image capturing elementthat converts condensed light into an electric signal. In this example,the first image capturing portion 21 can be included a portion of thefirst manipulator M1. Accordingly, the first image capturing portion 21moves according to the movement of the first arm. The range in which thefirst image capturing portion 21 can capture an image varies accordingto the movement of the first arm. The first image capturing portion 21may have a configuration of capturing a still image in theaforementioned range or may have a configuration of capturing a movingimage in the aforementioned range.

The first image capturing portion 21 is communicably connected to therobot control device 30 via cables. The cable communication via thecables is performed, for example, by standards such as Ethernet(Registered trademark) or USB. The first image capturing portion 21 mayhave a configuration of being connected to the robot control device 30by wireless communication performed by communication standards such asWi-Fi (Registered trademark).

The second arm includes a second end effector E2 and a secondmanipulator M2.

The second end effector E2 is, for example, an end effector includingclaw portions that can grip an object. The second end effector E2 may beanother end effector such as an end effector including an electricscrewdriver, instead of the end effector including the aforementionedclaw portions.

The second end effector E2 is communicably connected to the robotcontrol device 30 via the cables. Accordingly, the second end effectorE2 performs an operation based on a control signal acquired from therobot control device 30. The cable communication via the cables isperformed, for example, by standard such as Ethernet (Registeredtrademark) or USB. The second end effector E2 may have a configurationof being connected to the robot control device 30 by wirelesscommunication performed by communication standard such as Wi-Fi(Registered trademark).

The second manipulator M2 includes seven joints and a second imagecapturing portion 22. The seven joints respectively include actuators(not illustrated). That is, the second arm including the secondmanipulator M2 is a seven shaft vertical articulation-type arm. Thesecond arm performs an operation in a degree of freedom of seven shaftsby operations in association with the support, the second end effectorE2, the second manipulator M2, and the actuators of respective sevenjoints included in the second manipulator M2. The second arm may have aconfiguration of being operated in a degree of freedom of six or lessshafts or may have a configuration of being operated in a degree offreedom of eight or more shafts.

In a case where the second arm is operated in a degree of freedom ofseven shaft, the second arm can take more postures than in a case of anoperation in a degree of freedom of 6 or less shafts. Accordingly, forexample, an operation becomes smoother, and thus the second arm caneasily avoid interference with an object existing around the second arm.In a case where the second arm can be operated in a degree of freedom ofseven shafts, the control of the second arm has a less calculationamount and is easier than in a case where the second arm is operated ina degree of freedom of eight or more shafts.

The seven actuators (included in the joints) included in the secondmanipulator M2 are respectively communicably connected to the robotcontrol device 30 via cables. Accordingly, the aforementioned actuatorsoperates the second manipulator M2 based on a control signal acquiredfrom the robot control device 30. The cable communication via the cablesis performed, for example, by standards such as Ethernet (Registeredtrademark) or USB. A portion or all of the seven actuators included inthe second manipulator M2 may have a configuration of being connected tothe robot control device 30 via wireless communication performed bycommunication standard such as Wi-Fi (Registered trademark).

The second image capturing portion 22 is, for example, a cameraincluding CCD, CMOS, or the like, which is an image capturing elementthat converts condensed light into an electric signal. In this example,the second image capturing portion 22 can be included a portion of thesecond manipulator M2. Accordingly, the second image capturing portion22 moves according to the movement of the second arm. The range in whichthe second image capturing portion 22 can capture an image variesaccording to the movement of the second arm. The second image capturingportion 22 may have a configuration of capturing a still image in theaforementioned range or may have a configuration of capturing a movingimage in the aforementioned range.

The second image capturing portion 22 is communicably connected to therobot control device 30 via cables. The cable communication via thecables is performed, for example, by standards such as Ethernet(Registered trademark) or USB. The second image capturing portion 22 mayhave a configuration of being connected to the robot control device 30by wireless communication performed by communication standards such asWi-Fi (Registered trademark).

The robot 20 includes a third image capturing portion 23 and a fourthimage capturing portion 24.

The third image capturing portion 23 is, for example, a camera includingCCD, CMOS, or the like, which is an image capturing element thatconverts condensed light into an electric signal. The third imagecapturing portion 23 may be provided at a portion at which a range thatcan be captured by the fourth image capturing portion 24 can bestereoscopically captured together with the fourth image capturingportion 24. The third image capturing portion 23 is communicablyconnected to the robot control device 30 via the cables. The cablecommunication via the cables is performed, for example, by standardssuch as Ethernet (Registered trademark) or USB. The third imagecapturing portion 23 may have a configuration of being connected to therobot control device 30 by wireless communication performed bycommunication standards such as Wi-Fi (Registered trademark).

The fourth image capturing portion 24 is, for example, a cameraincluding CCD, CMOS, or the like, which is an image capturing elementthat converts condensed light into an electric signal. The fourth imagecapturing portion 24 may be provided at a portion at which a range thatcan be captured by the third image capturing portion 23 can bestereoscopically captured together with the third image capturingportion 23. The fourth image capturing portion 24 is communicablyconnected to the robot control device 30 via the cables. The cablecommunication via the cables is performed, for example, by standardssuch as Ethernet (Registered trademark) or USB. The fourth imagecapturing portion 24 may have a configuration of being connected to therobot control device 30 by wireless communication performed bycommunication standards such as Wi-Fi (Registered trademark).

The respective functional portions that the robot 20 include, forexample, acquires control signals from the robot control device 30 builtin the robot 20. The aforementioned respective functional portionsperform operations based on the acquired control signals. The robot 20may have a configuration of being controlled by the robot control device30 installed on an external portion, instead of the configuration inwhich the robot control device 30 is built. In this case, the robot 20and the robot control device 30 configure a robot system. The robot 20may have a configuration of not including at least a portion of thefirst image capturing portion 21, the second image capturing portion 22,the third image capturing portion 23, or the fourth image capturingportion 24.

The robot control device 30 operates the robot 20 by transmitting acontrol signal to the robot 20. Accordingly, the robot control device 30causes the robot 20 to perform a predetermined work.

Overview of Predetermined Work Performed by Robot 20

Hereinafter, an overview of the predetermined work performed by therobot 20 is described.

In this example, the robot 20 grips an object disposed a work area whichis an area in which a work can be performed by both of the first arm andthe second arm and performs a work of supplying (disposing) the grippedobject to a material supplying area (not illustrated), as apredetermined work. The robot 20 may have a configuration of performingother works instead of this, as the predetermined work. The work areamay be an area in which a work can be performed by any one of the firstarm and the second arm.

In this example illustrated in FIG. 1, the work area is an areaincluding an upper surface of a workbench TB. The workbench TB is, forexample, a table. The workbench TB may be another object such as a flooror a shelf, instead of the table. A target object O that the robot 20grips is disposed on an upper surface of the workbench TB. It may beconfigured that two or more target objects O are disposed on the uppersurface of the workbench TB.

The target object O is an industrial component or an industrial membersuch as a plate, a screw, or a bolt mounted in a product. In FIG. 1, inorder to simplify drawings, the target object O is illustrated as anobject in a rectangular shape. The target object O may be another objectsuch as a commodity or an organism instead of an industrial component oran industrial member. The shape of the target object O may be anothershape instead of the rectangular shape.

Overview of Process Performed by the Robot Control Device 30

Hereinafter, an overview of a process performed by the robot controldevice 30 is described, in order to cause the robot 20 to perform apredetermined work.

The robot control device 30 causes the third image capturing portion 23and the fourth image capturing portion 24 to stereoscopically capture arange including a work area as a capture range. The robot control device30 acquires captured images that the third image capturing portion 23and the fourth image capturing portion 24 stereoscopically capture. Therobot control device 30 detects a marker attached in the work area basedon the acquired captured images. The robot control device 30 may have aconfiguration of stereoscopically capturing the aforementioned capturerange, by any two combinations except for the combination of the thirdimage capturing portion 23 and the fourth image capturing portion 24among the first image capturing portion 21, the second image capturingportion 22, the third image capturing portion 23, and the fourth imagecapturing portion 24, instead of the configuration of causing the thirdimage capturing portion 23 and the fourth image capturing portion 24 tostereoscopically captured images as the capture range.

The marker of the present embodiment has a data area including a figureillustrating a position and a posture of the aforementioned marker and afigure illustrating other information different from the position andthe posture of the aforementioned marker.

One or more figures are included in a figure illustrating a position anda posture of a marker. In this example, a case where the figureillustrating the position and the posture of the marker is two figuresof a first figure and a second figure.

The figure illustrating the aforementioned other information is a codefigure which is a figure indicating a code (symbol) illustrating theaforementioned other information. The data area may have a configurationincluding one or more code figures. In a case where plural code figuresare included in the data area, independent code figures indicate codesillustrating a portion or all of the aforementioned other information.In this example, a case where four code figures are included in the dataarea, the aforementioned respective four code figures indicate codesillustrating a portion of the aforementioned other information, and allof the aforementioned four code figures indicate codes illustrating allof one item of the aforementioned other information is described.

In this example, the code illustrates robot operation informationillustrating an operation of the robot 20. The robot operationinformation is, for example, information illustrating an operation ofgripping the target object O based on a position and a posture of amarker, among operations of the robot 20, and supplying the targetobject O to the material supplying area (not illustrated). Each of thefour code figures indicating the codes illustrating the robot operationinformation is a figure indicating a code in several bits. In thisexample, a case where one code figure indicates a code in four bits isdescribed. That is, four code figures indicate codes in 16 bits intotal.

The codes indicated by the four code figures may be informationillustrating other operations such as operations for causing the robot20 to process the target object O, among operations of the robot 20 asthe robot operation information. The code indicated by four code figuresmay have a configuration illustrating other information such asinformation illustrating a character string (for example, a commentillustrating information relating to the target object O to which amarker is attached) to be displayed, on a display of the robot controldevice 30, instead of the robot operation information.

The position and the posture of the marker Mk illustrated by the firstfigure and the second figure that the marker have illustrate a positionand a posture in a robot coordinate system of the target object O. Theposition and the posture of the marker Mk may have a configurationillustrating other positions and postures such as a position and aposture of a via point at which the robot 20 passes through a toolcenter point (TCP) of the first arm or a TCP of the second arm, insteadof a configuration of illustrating the position and the posture in therobot coordinate system of the target object O.

Here, the figure center of the first figure is detected based on a shapeof the first figure and the figure center of the second figure isdetected based on the shape of the second figure. Therefore, the figurecenter of the first figure and the figure center of the second figureare hardly erroneously detected due to an external factor such as changeof ambient light or change of a marker Mk with time, compared with acase where a marker including a colored figure is detected based on theaforementioned color.

Therefore, when a marker is detected in the process for causing therobot 20 to perform a predetermined work, the robot control device 30detects at least the first figure among the first figure and the secondfigure that the marker have and detect the data area, that is, four codefigures included in the data area, based on the figure center of thefirst figure. Accordingly, the robot control device 30 can suppressfailure in the detection of the marker caused by the external factorwith respect to the marker. Hereinafter, a process in which the robotcontrol device 30 detects the marker from the captured image includingthe aforementioned marker.

In this example, the marker attached in the work area is the marker Mkattached to the target object O disposed on the upper surface of theworkbench TB in the work area. That is, the robot control device 30detects the marker Mk from the captured image captured by the thirdimage capturing portion 23 and the fourth image capturing portion 24. Atthe time of detection, among a first figure F1 and a second figure F2which are the first figure and the second figure that the marker Mkhave, at least the first figure F1 is detected, the robot control device30 detects a data area, that is four code figures included in the dataarea, based on the figure center of the first figure F1. In FIG. 1, inorder to simplify drawings, the marker Mk is indicated by a black squareattached to the target object O. The marker Mk may have a configurationof being attached to another object different from the target object Oin the work area, an upper surface of the workbench TB, or the like,instead of this.

After the data area is detected, the robot control device 30 calculatesthe position and the posture of the detected marker Mk, as a positionand a posture of the target object O in the robot coordinate system. Therobot control device 30 causes the first arm of the robot 20 to grip thetarget object O in the calculated aforementioned position and thecalculated aforementioned posture based on the code indicated by thecode figure included in the data area of the marker Mk and causes thetarget object O to be supplied to the material supplying area (notillustrated). Instead of this, the robot control device 30 may have aconfiguration of causing the second arm to grip the target object O ormay have another configuration of a configuration of causing both of thefirst arm and the second arm to grip the target object O.

Hardware Configuration of Robot Control Device 30

Hereinafter, with reference to FIG. 2, a hardware configuration of therobot control device 30 is described. FIG. 2 is a diagram illustratingan example of a hardware configuration of the robot control device 30.The robot control device 30 includes, for example, a central processingunit (CPU) 31, a storage portion 32, an input receiving portion 33, acommunication portion 34, and a display portion 35. The robot controldevice 30 performs a communication with the robot 20 via thecommunication portion 34. These components are communicably connected toeach other via buses Bus.

The CPU 31 executes various programs stored in the storage portion 32.

The storage portion 32 includes, for example, a hard disk drive (HDD), asolid state drive (SSD), an electrically erasable programmable read-onlymemory (EEPROM), a read-only memory (ROM), and a random access memory(RAM). The storage portion 32 may be an external storage deviceconnected via a digital input-output port such as USB, instead of astorage portion built in the robot control device 30. The storageportion 32 stores various items of information processed by the robotcontrol device 30 and information illustrating an image, a program, aposition of a material supplying area (not illustrated), and the like.

The input receiving portion 33 is, for example, a teaching pendantincluding a keyboard, a mouse, a touch pad, or the like, or other inputdevices. The input receiving portion 33 may be integrally configuredwith the display portion 35 as the touch panel.

The communication portion 34 is configured, for example, to include adigital input-output port such as USB, an Ethernet (Registeredtrademark) port, or the like.

The display portion 35 is, for example, a liquid crystal display panelor an organic Electro Luminescence (EL) display panel.

Functional Configurations of Robot Control Device 30

Hereinafter, with reference to FIG. 3, functional configurations of therobot control device 30 are described. FIG. 3 is a diagram illustratingan example of a functional configuration of the robot control device 30.The robot control device 30 includes the storage portion 32 and acontrol portion 36.

The control portion 36 controls the entire robot control device 30. Thecontrol portion 36 includes an image capturing control portion 40, animage acquisition portion 42, an image process portion 44, and a robotcontrol portion 46. The functional portions included in the controlportion 36 are realized, for example, by the CPU 31 executing variousprograms stored in the storage portion 32. A portion or all of thesefunctional portions may be hardware functional portions such as largescale integration (LSI) or application specific integrated circuit(ASIC).

The image capturing control portion 40 causes the third image capturingport ion 23 and the fourth image capturing portion 24 tostereoscopically capture the capture range including the work area.

The image acquisition portion 42 acquires the captured imagesstereoscopically captured by the third image capturing portion 23 andthe fourth image capturing portion 24, from the third image capturingportion 23 and the fourth image capturing portion 24.

The image process portion 44 performs various image processes on thecaptured image acquired by the image acquisition portion 42. The imageprocess portion 44 includes a first detecting process portion 50, asecond detecting process portion 51, a position and posture calculatingportion 52, and a code detection portion 53.

The first detecting process portion 50 detects one or more figures (forexample, the first figure and the second figure in this example)illustrating the position and the posture of the aforementioned markerwhich is included in the aforementioned captured image and which themarker has, from the aforementioned captured image, based on thecaptured image acquired by the image acquisition portion 42.

The second detecting process portion 51 detects one or more code figuresincluded in the data area that the aforementioned marker has from theaforementioned captured image, based on the captured image acquired bythe image acquisition portion 42 and one or more figures illustratingthe position and the posture of the marker detected by the firstdetecting process portion 50.

The position and posture calculating portion 52 calculates the positionand the posture of the aforementioned marker, as the position and theposture in the robot coordinate system of the target object to which theaforementioned marker is attached, based on the figure illustrating theposition and the posture of the marker detected by the first detectingprocess portion 50.

The code detection portion 53 detects codes from the one or more codefigures included in the data area detected by the second detectingprocess portion 51.

The robot control portion 46 causes the robot 20 to perform apredetermined work, based on the position and the posture of the markercalculated by the position and posture calculating portion 52 and thecode detected by the code detection portion 53.

Flow of Processes of Control Portion 36 Causing Robot 20 to PerformPredetermined Work

Hereinafter, with reference to FIG. 4, the process of the controlportion 36 causing the robot 20 to perform a predetermined work isdescribed. FIG. 4 is a flow chart illustrating an example of a flow ofprocesses of the control portion 36 causing the robot 20 to perform apredetermined work. Hereinafter, a case where the control portion 36reads information illustrating a position of the material supplying areafrom the storage portion 32 in advance is described. The control portion36 may have a configuration of reading information illustrating theposition of the material supplying area from the storage portion 32 atarbitrary timing in processes from Steps S100 to S130.

The image capturing control portion 40 causes the third image capturingport ion 23 and the fourth image capturing portion 24 tostereoscopically capture the capture range including the work areaillustrated in FIG. 1 (Step S100). Subsequently, the image acquisitionportion 42 acquires captured images stereoscopically captured by thethird image capturing portion 23 and the fourth image capturing portion24 in Step S100 from the third image capturing portion 23 and the fourthimage capturing portion 24 (Step S110). Subsequently, the respectivefunctional portion included in the image process portion 44 executes themarker detection process for detecting the marker Mk included in thecaptured images based on the captured images acquired by the imageacquisition portion 42 in Step S110 (Step S120).

Subsequently, the robot control portion 46 acquires results of themarker detection process in Step S120 from the image process portion 44.The robot control portion 46 causes the target object O to be suppliedto the material supplying area (not illustrated) that is gripped by thefirst arm, based on the results of the marker detection process (StepS130).

Here, a process of Step S130 is described. In a case where the detectionof the marker Mk in the marker detection process in Step S120 succeeds,results of the marker detection process include the position and theposture in the robot coordinate system of the target object O calculatedbased on the position and the posture of the marker Mk and the codesindicated by four code figures included in the data area of the markerMk. In this case, the robot control portion 46 causes the first arm togrip the target object O based on the aforementioned position, theaforementioned posture, and the aforementioned codes and causes thetarget object O to be supplied to the material supplying area (notillustrated). Thereafter, the robot control portion 46 ends the process.

Meanwhile, in a case where the detection of the marker Mk in the markerdetection process in Step S120 is failed, the results of the markerdetection process include the information illustrating the failure ofthe detection of the marker Mk. In this case, the robot control portion46 ends the process without controlling the robot 20. At this point, therobot control portion 46 may have a configuration of displayinginformation illustrating the failure of the detection of the marker Mkon the display portion 35.

Details of Marker

Hereinafter, details of the marker detected by the robot control device30 from the captured images are described. The marker in this example(for example, the marker Mk) has a data area including the first figureand the second figure which are figures illustrating the position andthe posture of the marker and the four code figures indicating thecodes. The marker in this example includes the data area disposedbetween the first figure and the second figure. Here, with reference toFIGS. 5 to 12, the marker in this example is described.

FIG. 5 is a diagram illustrating a specific example of the marker Mkillustrated in FIG. 1. The marker in this example is configured by beingdivided into three areas, in the same manner as the marker Mkillustrated in FIG. 5, which is an example of the aforementioned marker.Therefore, here, description is made with reference to the marker Mk, asan example.

The marker Mk is divided into three areas of an area W1 including thefirst figure F1 which is the first figure of the marker Mk, an area W2including the second figure F2 which is the second figure of the markerMk, and a data area W3. The data area W3 includes four code figuresindicating the codes. The robot control device 30 detects the firstfigure F1, the second figure F2, and the four code figures indicatingcodes, based on figure centers of the respective figures.

Here, the figure center of the figure is described in detail. FIG. 6 isa diagram for describing the figure centers of the figure. In FIG. 6, afigure F0 in which an outline is formed with a curve line, atwo-dimensional coordinate system indicating positions of respectivepoints that configure the figure F0, and a vector r_i illustrating thepositions of the aforementioned respective points. Here, in FIG. 6, avector r is indicated in association with an arrow on r. “i” followed by“_” of the vector r_i indicates a subscript i of the vector rillustrated by FIG. 6. The subscript i is a label for differentiatingrespective points (for example, pixels) that configure the figure F0. InFIG. 6, an arrow that extends from an origin of the two-dimensionalcoordinate system to the figure F0 is an arrow indicating a size and adirection of the vector r_i.

The figure center is a so-called center of the figure. One figure centeris uniquely determined with respect to one figure. The position of thefigure center of the figure F0 illustrated in FIG. 6 is indicated by avector c defined by Equation (1) illustrated below, using the vectorr_i.

$\begin{matrix}{\overset{\rightharpoonup}{c} = \frac{\sum{\overset{\rightharpoonup}{r}}_{i}}{N}} & (1)\end{matrix}$

In Equation (1), the vector c is indicated in association with an arrowon c. N is the number of respective points that configure the figure F0,and is an integer of 1 or greater. That is, the position of the figurecenter of the figure F0 illustrated in FIG. 6 indicates a sum of vectorsindicating positions of the respective points that configure the figureF0 by vectors (average of N vectors) divided by the number of theaforementioned respective points. In FIG. 6, a figure center using thetwo-dimensional figure F0, the two-dimensional coordinate system, andthe two-dimensional vectors is described, but the position of the figurecenter is indicated by the vector c defined by Equation (1) above withrespect to the three-dimensional or greater figures.

Here, in this example, each of the first figure and the second figure isa figure center marker which is a figure configured by the combinationof three or more figures. The figure center marker is a marker in whichrespective figure centers of three or more figures that configure thefigure center marker belong to (are included in) a predetermined range.

For example, with respect to the figure center marker that is configuredwith a combination of a figure A0, a figure B0, and the figure C0belongs to (are included in), a figure center A1 of the figure A0, afigure center B1 of the figure B0, and the figure center C1 of thefigure C0 is in the predetermined range. The predetermined range is, forexample, is a circular range in which a radius is about several pixels.However, the predetermined range may be a circular range having a radiusof less than 1 pixel, may be a circular range having a radius of severalpixels or greater, or may be a range in another shape different from acircular shape, such as a rectangle shape.

Hereinafter, for easier description, the number of figure centersincluded in the predetermined range is called multiplicity to bedescribed. That is, the figure center marker configured with acombination of the figure A0, the figure B0, and a figure C0 is a figurecenter marker having multiplicity of 3. Instead of this, any one or bothof the first figure and the second figure may be a figure configuredwith one or more figures.

FIG. 7 is a diagram illustrating the first figure F1, as an example ofthe figure center marker. As illustrated in FIG. 7, three or morefigures that configure the figure center marker are detected as apartial area of only white or black in the binarized image.

The first figure F1 is configured with four figures of a figure F11 inwhich an outline is indicated by a white partial area in a circularshape, a figure F12 in which an outline is indicated by a black partialarea in a ring shape, a figure F13 in which an outline is indicated by awhite partial area in a ring shape, and a figure F14 in which an outlineis indicated by a black partial area in a ring shape.

The first figure F1 is formed such that the respective figure centers ofthe figure F11, the figure F12, the figure F13, and the figure F14belong to a predetermined range. Therefore, the first figure F1configured with a combination of the figure F11, the figure F12, thefigure F13, and the figure F14 is a figure center marker havingmultiplicity of 4. The figures F11 to F14 in the first figure F1 areconcentric circles and the figure centers are positioned in the centerof the aforementioned concentric circles.

FIG. 8 is a diagram illustrating the second figure F2 as another exampleof the figure center marker. The second figure F2 is configured withthree figures of a figure F21 in which an outline is indicated by ablack partial area in a circular shape, a figure F22 in which an outlineis indicated by a white partial area in a ring shape, and a figure F23in which an outline is indicated by a black partial area in a ringshape. The second figure F2 is formed such that the respective figurecenters of the figure F21, the figure F22, and the figure F23 belong toa predetermined range. Therefore, the second figure F2 configured with acombination of the figure F21, the figure F22, and the figure F23 is afigure center marker of multiplicity of 3. The figures F21 to F23 in thesecond figure F2 are concentric circles and the figure centers arepositioned in the center of the aforementioned concentric circles.

In the first figure F1 and the second figure F2 illustrated in FIGS. 7and 8, a combination of three or more figures that configure the figurecenter marker configure the concentric circles. However, in the figurecenter marker, a combination of three or more figures that configure thefigure center marker configures the concentric circle, but does notlimited thereto. The figure center marker illustrated in FIGS. 9 to 11is an example of a case where a combination of three or more figuresthat configure the figure center marker does not configure theconcentric circle.

FIG. 9 is a diagram illustrating an example of a figure center markerhaving multiplicity of 3 that is configured with three figures that donot configure concentric circles. FIG. 10 is a diagram illustrating anexample of a figure center marker having multiplicity of 4 whichconfigures four figures that do not configure concentric circles. FIG.11 is a diagram illustrating another example of a figure center markerhaving multiplicity of 4 that is configured with four figures that donot configure concentric circles.

In this example, the position and the posture of the object (forexample, the target object O illustrated in FIG. 1) to which the markerhaving such a figure center marker as the first figure or the secondfigure is attached is indicated by the position and the posture of thefigure center of the first figure of the aforementioned marker. Theposition of the figure center of the aforementioned first figure isindicated by the vector (average of three or more vectors) obtained bydividing the sum of the vectors illustrating the positions of the threeor more figure centers included in the predetermined range by the numberof the figure center. Instead of this, the position of the object towhich the aforementioned marker is attached may have a configuration ofbeing indicated by another position (offset position) associated withthe position of the figure center of the aforementioned first figure.The position and the posture of the object to which the marker havingthe figure center marker as the first figure or the second figure isattached may have a configuration indicated by the position and theposture of the figure center of the second figure of the aforementionedmarker.

The posture of the figure center of the aforementioned first figure isindicated in the direction of the robot coordinate system of respectivethree coordinate axes having a normal direction with respect to theaforementioned first figure in the position of the aforementioned figurecenter as a Z axis, a direction determined based on the figure center ofthe aforementioned first figure and the figure center of the secondfigure or a direction determined based on the figure center of theaforementioned first figure and the figure included in the data area asan X axis, and a direction intersecting to the aforementioned Z axis andthe aforementioned X axis as a Y axis. Instead of this, the posture ofthe object to which the aforementioned marker is attached may have aconfiguration indicated by another posture (offset posture) associatedwith the posture of the figure center of the aforementioned firstfigure.

Subsequently, four code figures indicating the codes are described. Inthis example, as the respective four code figures, any one of figuresFD1 to FD16 which are 16 types of code figures illustrated in FIG. 12 isused. FIG. 12 is a flow chart illustrating a flow of processes of therobot control device 30 specifying whether the respective four codefigures detected by the robot control device 30 are any one of 16 typesof code figures. As long as the robot control device 30 can bedifferentiated, the code figure may have a configuration in which othercode figures are included instead of a part or all of the 16 types ofcode figures illustrated in FIG. 12. Instead of 16 types, the codefigures may be 15 types or less or 17 types or more. The robot controldevice 30 may have a configuration of specifying whether the detectedrespective code figures are any one of the 16 types of code figureillustrated in FIG. 12 by another process such as pattern matching,instead of the processes of the flow chart illustrated in FIG. 12.

The 16 types of code figures in this example are respectively configuredwith a figure indicated by black partial areas and a figure indicated bywhite partial areas surrounded by the black partial areas in an area inwhich 32 square shaped cells are arranged in eight rows and four columnsas illustrated in FIG. 12. In each of the aforementioned code figures,among the 32 cells arranged in the aforementioned eight rows and fourcolumns, eight cells included in the fourth column from the left sideillustrated by an arrow A11 of FIG. 12 are white. In this example, therobot control device 30 does not detect white partial areas includingwhite cells included in the aforementioned fourth column in the codefigure as a figure configuring the code figure.

First, after the robot control device 30 detects a target code figurethat is a code figure which becomes a target for specifying any one ofthe figures FD1 to FD16, the robot control device 30 detects the figurecenters of the figures for configuring target code figures. The robotcontrol device 30 determines whether multiplicity of the figure centerdetected in the area of the aforementioned eight rows and four columnsis any one of 1 and 2 (Step S200). According to the determination, therobot control device 30 determines whether the target code figure is anyone of the figures FD1 to FD3 or the target code figure is the figuresFD4 to FD16.

In Step S200, in a case where it is determined that the multiplicity ofthe figure center is 2 (Step S200-2), the robot control device 30specifies that the target code figure is any one of the figures FD1 toFD3. The robot control device 30 determines that a size of the blackpartial area of the target code figure is any one of large, medium, andsmall (Step S210).

Here, the process of Step S210 is determined. In Step S210, in a casewhere the number of the black cells indicating the size of the blackpartial area in the target code figure is less than 18, the robotcontrol device 30 determines that the aforementioned size is small. In acase where the number of black cells indicating the size of the blackpartial area in the target code figure is 18 or greater and less than22, the robot control device 30 determines that the aforementioned sizeis medium. In a case where the number of black cells indicating the sizeof the black partial area in the target code figure is 22 or greater,the robot control device 30 determines that the aforementioned size islarge.

In this example, since the number of the black cells is 10, the figureFD1 determines that the size is small, in Step S210. As illustrated inFIG. 12, since the figure FD1 is configured with two figures and therespective figure centers of the figures belong to the predeterminedrange, the multiplicity is 2. Since the number of black cells is 18, thefigure FD2 determines that the size is medium, in Step S210. Asillustrated in FIG. 12, since the figure FD2 is configured with twofigures and the respective figure centers of the figures belong to thepredetermined range, the multiplicity is 2. Since the number of theblack cells is 22, the figure FD3 determines that the size is large, inStep S210. As illustrated in FIG. 12, since the figure FD3 is configuredwith two figures and the figure centers of the respective figures belongto the predetermined range, the multiplicity is 2.

That is, in a case where it is determined that the size of the blackpartial area of the target code figure is small (Step S210-Small), therobot control device 30 specifies that the target code figure is thefigure FD1. Meanwhile, in a case where it is determined that the size ofthe black partial area of the target code figure is middle (StepS210-Middle), the robot control device 30 specifies that the target codefigure is the figure FD2. Meanwhile, in a case where it is determinedthat the size of the black partial area of the target code figure islarge (Step S210-Large), the robot control device 30 specifies that thetarget code figure is the figure FD3.

Meanwhile, in a case where it is determined that the multiplicity of thefigure center is 1 in Step S200 (Step S200-1), the robot control device30 specifies that the target code figure is any one of the figures FD4to FD16. The robot control device 30 determines that the number of thefigure centers of the target code figures detected in Step S200 is anyone of 1 and 2 (Step S220). According to this determination, the robotcontrol device 30 determines whether the target code figure is any oneof the figures FD4 to FD10 or the target code figure is any one of thefigures FD11 to FD16.

In a case where it is determined that the number of the figure centersis 1, in Step S220 (Step S220-1), the robot control device 30 specifiesthat the target code figure is any one of the figures FD4 to FD10. Therobot control device 30 determines that the size of the black partialarea of the target code figure is any one of large, medium, and small(Step S230).

Here, processes of Step S230 are described. In Step S230, in a casewhere the number of the black cells indicating the size of the blackpartial area in the target code figure is less than 8, the robot controldevice 30 determines that the aforementioned size is small. In a casewhere the number of the black cell indicating the size of the blackpartial area in the target code figure is 8 or greater and less than 16,the robot control device 30 determines that the size is medium. In acase where the number of the black cells indicating the aforementionedsize of the black partial area in the target code figure is 16 orgreater, the robot control device 30 determines that the aforementionedsize is large.

In this example, in the figures FD4 and FD5, the number of the blackcells are less than 8, it is determined that the size is small, in StepS230. The number of the black cells in the figure FD4 is 2, and thenumber of the black cells in the figure FD5 is 6. As illustrated in FIG.12, the figures FD4 and FD5 are configured with one figure, themultiplicity is 1. In the figures FD6 and FD7, the number of the blackcells is 8 or greater and less than 16, it is determined that the sizeis medium, in Step S230. The number of the black cells in the figure FD6is 12, and the number of the black cells in the figure FD7 is 8. Asillustrated in FIG. 12, the figures FD6 and FD7 are configured with onefigure, and the multiplicity is 1. In the figures FD8 to FD10, since thenumber of the black cells is 16 or greater, it is determined that thesize is large, in Step S230. The number of the black cells in the figureFD8 is 16, the number of the black cells in the figure FD9 is 20, andthe number of the black cells in the figure FD10 is 24. As illustratedin FIG. 12, the figures FD8 to FD10 are configured with one figure, andthe multiplicity is 1.

That is, in Step S230, in a case where it is determined that the size ofthe black partial area of the target code figure is small (StepS230-Small), the robot control device 30 specifies that the target codefigure is any one of the figures FD4 and FD5. The robot control device30 determines whether the aspect ratio of the black partial area of thetarget code figure is great or small (Step S240).

Here, processes of Step S240 are described. In Step S240, the robotcontrol device 30 calculates an aspect ratio obtained by dividing thenumber of the black cells configuring the black partial area in thetarget code figure in the longitudinal direction by the number of theaforementioned black cells arranged in the horizontal direction. In thisexample, the longitudinal direction is a direction in which eight cellsare arranged in respective columns of the 32 cells arranged in eightrows and four columns and the horizontal direction is a direction inwhich four are arranged in respective rows of the 32 cells arranged ineight rows and four columns. In a case where the calculated aspect ratiois 1 or greater, the robot control device 30 determines that theaforementioned aspect ratio is large. In a case where the calculatedaspect ratio is less than 1, the robot control device 30 determines thatthe aforementioned aspect ratio is small.

In this example, in the figure FD4, the number of the black cells in thelongitudinal direction is 2, and the number of the black cells in thehorizontal direction is 1. Therefore, it is determined that the aspectratio is large in Step S240. In the figure FD5, the number of the blackcells in the longitudinal direction is 2, and the number of the blackcells in the horizontal direction is 3. Therefore, it is determined thatthe aspect ratio is small, in Step S240.

That is, in Step S240, in a case where it is determined that the aspectratio of the black partial area of the target code figure is large (StepS240-Large), the robot control device 30 specifies that the target codefigure is the figure FD4. Meanwhile, in a case where it is determinedthat the aspect ratio of the black partial area of the target codefigure is small (Step S240-Small), the robot control device 30 specifiesthat the target code figure is the figure FD5.

Meanwhile, in Step S230, in a case where it is determined that the sizeof the black partial area of the target code figure is medium (StepS230-Medium), the robot control device 30 specifies that the target codefigure is any one of the figures FD6 and FD7. The robot control device30 determines whether the aspect ratio of the black partial area of thetarget code figure is great or small (Step S250).

Here, processes of Step S250 are described. In Step S250, the robotcontrol device 30 calculates an aspect ratio obtained by dividing thenumber of the black cells configuring the black partial area in thetarget code figure in the longitudinal direction by the number of theaforementioned black cells arranged in the horizontal direction. In acase where the calculated aspect ratio is 8, the robot control device 30determines that the aforementioned aspect ratio is large. In a casewhere the calculated aspect ratio is less than 8, the robot controldevice 30 determines that the aforementioned aspect ratio is small.

In this example, in the figure FD7, the number of the black cells in thelongitudinal direction is 4, and the number of the black cells in thehorizontal direction is 3. Therefore, it is determined that the aspectratio in Step S250 is small. In the figure FD8, the number of the blackcells in the longitudinal direction is 8, and the number of the blackcells in the horizontal direction is 1. Therefore, it is determined thatthe aspect ratio is large in Step S250.

That is, in Step S250, in a case where it is determined that the aspectratio of the black partial area of the target code figure is small (StepS250-Small), the robot control device 30 specifies that the target codefigure is the figure FD7. Meanwhile, in a case where it is determinedthat the aspect ratio of the black partial area of the target codefigure is large (Step S250-Large), the robot control device 30 specifiesthat the target code figure is the figure FD8.

Meanwhile, in Step S230, in a case where it is determined that the sizeof the black partial area of the target code figure is large (StepS230-Large), the robot control device 30 specifies that the target codefigure is any one of the figures FD8 to FD10. The robot control device30 determines that the size of the black partial area of the target codefigure is any one of large, medium, and small (Step S260).

Here, processes of Step S260 are described. In Step S260, in a casewhere the number of the black cells indicating the size of the blackpartial area in the target code figure is less than 20, the robotcontrol device 30 determines that the aforementioned size is small. In acase where the number of the black cell indicating the size of the blackpartial area in the target code figure is 20 or greater and less than24, the robot control device 30 determines that the aforementioned sizeis medium. In a case where the number of the black cells indicating thesize of the black partial area in the target code figure is 24 orgreater, the robot control device 30 determines that the aforementionedsize is large.

In this example, in the figure FD8, since the number of the black cellsis 16, it is determined that the size is small in Step S260. In thefigure FD9, since the number of the black cells is 20, it is determinedthat the size is medium in Step S260. In the figure FD10, since thenumber of the black cells is 24, it is determined that the size is largein Step S230.

That is, in Step S260, in a case where it is determined that the size ofthe black partial area of the target code figure is small (StepS260-Small), the robot control device 30 specifies that the target codefigure is the figure FD8. Meanwhile, in a case where it is determinedthat the size of the black partial area of the target code figure (StepS260-Medium), the robot control device 30 specifies that the target codefigure is the figure FD9. Meanwhile, in a case where it is determinedthat the size of the black partial area of the target code figure islarge (Step S260-Large), the robot control device 30 specifies that thetarget code figure is the figure FD10.

Meanwhile, in a case where it is determined that the number of thefigure centers is 2 in Step S220 (Step S220-2), the robot control device30 specifies that the target code figure is any one of the figures FD11to FD16. The robot control device 30 determines whether the size on thefirst column from the left side in the 32 cells arranged in eight rowsand four columns among the sizes of the black partial area of the targetcode figure is larger than the size on the third column from theaforementioned left side, the respective sizes of the first and thirdcolumns from the aforementioned left side are the same size, or the sizeof the third column from the aforementioned left side is larger than thesize of the first column from the aforementioned left side (Step S270).

Here, processes of Step S270 are described. In Step S270, in a casewhere the number of the black cells configuring the size of the firstcolumn from the left side in the 32 cells arranged in eight rows andfour columns among the sizes of the black partial area of the targetcode figure is greater than the number of the black cells configuringthe size of the third column from the aforementioned left side, therobot control device 30 determines that the size of the first columnfrom the left side in the 32 cells arranged in eight rows and fourcolumns among the sizes of the black partial area of the target codefigure is larger than the size of the third column from theaforementioned left side.

In a case where the number of the black cells configuring the size ofthe first column from the left side in the 32 cells arranged in eightrows and four columns among the sizes of the black partial area of thetarget code figure is the same as the number of the black cellsconfiguring the size of the third column from the aforementioned leftside, the robot control device 30 determines that the respective sizesof the first and third columns from the left side in the 32 cellsarranged in eight rows and four columns among the sizes of the blackpartial area of the target code figure are the same with each other.

In a case where the number of the black cells configuring the size ofthe third column from the left side in the 32 cells arranged in eightrows and four columns among the sizes of the black partial area of thetarget code figure is greater than the number of the black cellsconfiguring the size of the first column from the aforementioned leftside, the robot control device 30 determines that the size of the thirdcolumn from the left side in the 32 cells arranged in eight rows andfour columns among the sizes of the black partial area of the targetcode figure is larger than the size of the first column from theaforementioned left side.

In this example, in the figures FD11 and FD12, the number of black cellsconfiguring the size of the first column from the left side in the 32cells arranged in eight rows and four columns among the sizes of theblack partial area is greater than the number of black cells configuringthe size of the third column from the aforementioned left side, and thusit is determined that the size of the first column from the left side inthe 32 cells arranged in eight rows and four columns among the sizes ofthe black partial area is larger than the size of the third column fromthe aforementioned left side.

In the figure FD11, the number of the black cells configuring the sizeof the first column from the left side in the 32 cells arranged in eightrows and four columns among the sizes of the black partial area is 2,and the number of the black cells configuring the size of the thirdcolumn from the aforementioned left side is 8.

In the figure FD12, the number of the black cells configuring the sizeof the first column from the left side in the 32 cells arranged in eightrows and four columns among the sizes of the black partial area is 6,and the number of the black cells configuring the size of the thirdcolumn from the aforementioned left side is 8.

The figures FD11 and FD12 are configured with two figures, and thus therespective figure centers of the figures do not belong to thepredetermined range. Therefore, the multiplicity is 1 and the number ofthe figure centers is 2.

In the figures FD13 and FD14, the number of the black cells configuringthe size of the first column from the left side in the 32 cells arrangedin eight rows and four columns among the sizes of the black partial areais the same as the number of the black cells configuring the size of thethird column from the aforementioned left side, it is determined thatthe respective sizes of the first and third columns from the left sidein the 32 cells arranged in eight rows and four columns among the sizesof the black partial area are the same with each other.

In the figure FD13, the number of the black cells configuring the sizeof the first column from the left side in the 32 cells arranged in eightrows and four columns among the sizes of the black partial area is 2,and the number of the black cells configuring the size of the thirdcolumn from the aforementioned left side is 2.

In the figure FD14, the number of the black cells configuring the sizeof the first column from the left side in the 32 cells arranged in eightrows and four columns among the sizes of the black partial area is 8,and the number of the black cells configuring the size of the thirdcolumn from the aforementioned left side is 8.

The figures FD13 and FD14 are configured with two figures, and therespective figure centers of the figures do not belong to thepredetermined range. Therefore, the multiplicity is 1 and the number ofthe figure centers is 2.

In the figures FD15 and FD16, the number of the black cells configuringthe size of the third column from the left side in the 32 cells arrangedin eight rows and four columns among the sizes of the black partial areais greater than the number of the black cells configuring the size ofthe first column from the aforementioned left side, and thus it isdetermined that the size of the third column from the left side in the32 cells arranged in eight rows and four columns among the sizes of theblack partial area is larger than the size of the first column from theaforementioned left side.

In the figure FD15, the number of the black cells configuring the sizeof the first column from the left side in the 32 cells arranged in eightrows and four columns among the sizes of the black partial area is 8,and the number of the black cells configuring the size of the thirdcolumn from the aforementioned left side is 2.

In the figure FD16, the number of the black cells configuring the sizeof the first column from the left side in the 32 cells arranged in eightrows and four columns among the sizes of the black partial area is 8,and the number of the black cells configuring the size of the thirdcolumn from the aforementioned left side is 6.

The figures FD15 and FD16 are configured with two figures, and therespective figure centers of the figures do not belong to thepredetermined range. Therefore, the multiplicity is 1 and the number ofthe figure centers is 2.

That is, in Step S270, in a case where it is determined that the size ofthe first column from the left side in the 32 cells arranged in eightrows and four columns among the sizes of the black partial area islarger than the size of the third column from the aforementioned leftside (Step S270-Third column is large), the robot control device 30specifies that the target code figure is any one of the figures FD11 andFD12. The robot control device 30 determines whether the size of theblack partial area of the target code figure is large or small (StepS280).

Here, processes of Step S280 are described. In Step S280, in a casewhere the number of the black cells indicating the size of the blackpartial area in the target code figure is less than 18, the robotcontrol device 30 determines that the aforementioned size is small. In acase where the number of the black cells indicating the size of theblack partial area in the target code figure is 18 or greater, the robotcontrol device 30 determines that the aforementioned size is large.

In this example, in the figure FD11, the number of the black cells is10, and thus it is determined that the size is small in Step S280. Inthe figure FD12, the number of the black cells is 18, and thus it isdetermined that the size is large in Step S280.

That is, in Step S280, in a case where it is determined that the size ofthe black partial area of the target code figure is small (StepS280-Small), the robot control device 30 specifies that the target codefigure is the figure FD11. Meanwhile, in a case where it is determinedthat the size of the black partial area of the target code figure islarge (Step S280-Large), the robot control device 30 specifies that thetarget code figure is the figure FD12.

Meanwhile, in a case where it is determined that the respective sizes ofthe first and third columns from the left side in the 32 cells arrangedin eight rows and four columns among the sizes of the black partial areaare the same with each other (Step S270-Same), the robot control device30 specifies that the target code figure is any one of the figures FD13and FD14. The robot control device 30 determines whether the size of theblack partial area of the target code figure is large or small (StepS290).

Here, processes of Step S290 are described. In Step S290, in a casewhere the number of the black cells indicating the size of the blackpartial area in the target code figure is less than 16, the robotcontrol device 30 determines that the aforementioned size is small. In acase where the number of the black cells indicating the size of theblack partial area in the target code figure is 16 or greater, the robotcontrol device 30 determines that the aforementioned size is large.

In this example, in the figure FD13, the number of the black cells is 4,and thus it is determined that the size is small in Step S290. In thefigure FD14, the number of the black cells is 16, and thus it isdetermined that the size is large in Step S290.

That is, in Step S290, in a case where it is determined that the size ofthe black partial area of the target code figure is small (StepS290-Small), the robot control device 30 specifies that the target codefigure is the figure FD13. Meanwhile, in a case where it is determinedthat the size of the black partial area of the target code figure islarge (Step S290-Large), the robot control device 30 specifies that thetarget code figure is the figure FD14.

Meanwhile, in a case where it is determined that the size of the thirdcolumn from the aforementioned left side in the 32 cells arranged ineight rows and four columns among the sizes of the black partial areaare greater than the size of the first column from the left side (StepS270-First column is large), the robot control device 30 specifies thatthe target code figure is any one of the figures FD15 and FD16. Therobot control device 30 determines whether the size of the black partialarea of the target code figure is large or small (Step S295).

Here, processes of Step S295 are described. In Step S295, in a casewhere the number of the black cells indicating the size of the blackpartial area in the target code figure is less than 18, the robotcontrol device 30 determines that the aforementioned size is small. In acase where the number of black cells indicating that the size of theblack partial area in the target code figure is 18 or greater, the robotcontrol device 30 determines that the aforementioned size is large.

In this example, in the figure FD15, the number of black cells is 10,and thus it is determined that the size in Step S295 is small. In thefigure FD16, the number of black cells is 18, and thus it is determinedthat the size in Step S295 is large.

That is, in Step S295, in a case where it is determined that the size ofthe black partial area of the target code figure is small (StepS295-Small), the robot control device 30 specifies that the target codefigure is the figure FD15. Meanwhile, in a case where it is determinedthat the size of the black partial area of the target code figure islarge (Step S295-Large), the robot control device 30 specifies that thetarget code figure is the figure FD16.

In this manner, the robot control device 30 can specify that the targetcode figure is any one of 16 types of code figures. Therefore, thefigures FD1 to FD16 are sequentially regarded as hexadecimal numbers of1 to F, one code figure can indicate information of 4 bits. That is,four code figures included in the data area can indicate a code of 16bits.

In the marker in this example (for example, the marker Mk), respectivefour code figures included in the data area are disposed such thatrespective figure centers of the aforementioned code figures arepositioned on a straight line that pass through the figure center of thefirst figure and the figure center of the second figure. In this manner,in a case where plural figures exist between a candidate of the firstfigure and a candidate of the second figure, the robot control device 30determines whether these figures are the marker in this example or not.Therefore, it is possible to suppress a combination of figures which arenot the aforementioned marker from being erroneously detected as themarker.

As above, the marker in this example has a data area including a firstfigure, a second figure, and four code figures. In this manner, afterthe first figure is detected, the aforementioned marker can cause thedata area to be detected based on the figure center of theaforementioned first figure, and as a result, the failure of thedetection of the marker by the external factor with respect to themarker can be suppressed.

Overview of Detection Method of Figure Center Marker

Hereinafter, a detection method of the figure center marker by the robotcontrol device 30 according to the present embodiment is described.

In this example, in the detection method of the figure center marker bythis robot control device 30, when the figure center marker is detectedfrom the captured image, the robot control device 30 converts thecaptured image into a grayscale image (grayscale process). The robotcontrol device 30 converts the captured image into a 256 gradationgrayscale image in the grayscale process of the captured image. Therobot control device 30 may have a configuration of converting thecaptured image into another gradation grayscale image, instead of theconfiguration of converting the captured image into a 256 gradationgrayscale image.

The robot control device 30 converts a grayscale image obtained byconverting the captured image in the grayscale process, into a binarizedimage (monochrome image) (binarization process). The binarizationprocess is a process for converting a grayscale image into a binarizedimage by converting a color of a pixel having luminance of apredetermined threshold value (binarized threshold value) or greater ona grayscale image into white and converting a pixel having luminance ofless than the aforementioned threshold value into black. In thisexample, a binarized threshold value is determined in advance. Thebinarized threshold value may be another configuration that can bedetermined by a method based on the captured image of Otsu's method orthe like. The robot control device 30 detects a figure center markerfrom the binarized image obtained by converting the grayscale image bythe binarization process.

With Respect to Flow of Marker Detection Process

Hereinafter, with respect to FIG. 13, a marker detection process in StepS120 illustrated in FIG. 4 is described. FIG. 13 is a flow chartillustrating an example of a flow of a marker detection process in StepS120 illustrated in FIG. 4.

The image process portion 44 reads marker information stored in advancein the storage portion 32 from the storage portion 32 (Step S300). Inthis example, the marker information includes at least informationillustrating a marker and information associated with the informationillustrating each of the first figure and the second figure that themarker has. For example, the marker information includes informationillustrating the marker Mk and information associated with theinformation illustrating each of the first figure F1 and the secondfigure F2 that the marker Mk has.

In this example, the information illustrating the marker is the markerID. Instead of this, the information illustrating the marker may beother information as long as the information is information that canidentify a marker such as a marker name. In this example, theinformation illustrating each of the first figure and the second figureis a model image used for detecting each of the first figure and thesecond figure by pattern matching. Instead of this, the informationillustrating each of the first figure and the second figure may be otherinformation that can be used in the process for detecting each of thefirst figure and the second figure from the captured image. The processof Step S300 may have a configuration of being performed by any onefunctional portion of respective functional portions illustrated in FIG.3 that the image process portion 44 includes or may have a configurationof being performed by a functional portion which is not illustrated inFIG. 3 that the image process portion 44 includes.

Subsequently, the respective functional portions included in the imageprocess portion 44 select the markers ID included in the markerinformation read from the storage portion 32 in Step S300 one by one,use the markers illustrated by the selected marker ID as a targetmarker, and repeatedly perform the processes from Steps S320 to S370 foreach target marker (Step S310).

Hereinafter, for easier description, a case where a marker ID includedin the marker information is only one marker ID illustrating the markerMk is described. In this case, the image process portion 44 performsprocesses from Steps S320 to S370 on the marker Mk, one time.

Subsequently, the first detecting process portion 50 extractsinformation illustrating each of the first figure F1 and the secondfigure F2 associated with the marker ID illustrating the marker Mkselected as the target marker in Step S310 from the marker information.The first detecting process portion 50 detects each of theaforementioned first figure F1 and the aforementioned second figure F2from the captured image acquired by the image acquisition portion 42 inStep S110 illustrated in FIG. 4, based on the extracted informationillustrating each of the first figure F1 and the second figure F2 andthe detection method of the figure center marker described above (StepS320).

Here, processes of Step S320 are described. The first detecting processportion 50 detects a figure center marker having multiplicity of 3 orgreater, from the captured image, as candidates of the first figure F1and the second figure F2. The multiplicity (the number of overlappedfigure centers) of four code figures included in the data area is 2 atmost, and the multiplicity thereof is smaller than each of the firstfigure F1 and the second figure F2. Therefore, the first detectingprocess portion 50 suppresses erroneous detection of these code figuresas candidates of the first figure F1 and the second figure F2. The firstdetecting process portion 50 detects the first figure F1 and the secondfigure F2 by the pattern matching from the figure center markers havingthe multiplicity of 3 or greater which are detected as the candidates ofthe first figure F1 and the second figure F2, based on model images ofthe respective the first figure F1 and the second figure F2 extractedfrom the marker information. As the processes of the pattern matching,methods known in the related art are used, and thus description thereofis omitted.

Subsequently, the second detecting process portion 51 detects the dataarea that the marker Mk has, based on the first figure F1 and the secondfigure F2 detected by the first detecting process portion 50 from thecaptured image in Step S320 (Step S330). Here, processes of Step S330are described with reference to FIGS. 14 and 15. FIG. 14 is a diagramexemplifying the figure center of the first figure F1 and the figurecenter of the second figure F2 that the marker Mk has, and respectivefigure centers of the four code figures included in the data area. InFIG. 14, the aforementioned four code figures are arranged from thefirst figure F1 toward the second figure F2 in an order of the figureFD5, the figure FD10, the figure FD16, and the figure FD1.

As described above, in the marker Mk illustrated in FIG. 14, the figureFD5, the figure FD10, the figure FD16, and the figure FD1 are disposed,such that a figure center C5 of the figure FD5, a figure center C10 ofthe figure FD10, a figure center C161 and a figure center C162 of thefigure FD16 (having two figure centers), and a figure center C1 of thefigure FD1, which are the four code figures, are positioned on astraight line CL connecting a figure center F1C of the first figure F1and a figure center F2C of the second figure F2.

The second detecting process portion 51 executes a process for detectingplural figures included between the first figure F1 and the secondfigure F2 detected as the data area that the marker Mk has in Step S330,as candidates of the four code figures. In this process, the seconddetecting process portion 51 calculates figure centers of the pluralfigures included between the first figure F1 and the second figure F2.In a case where four figures having figure centers positioned on thestraight line (that is, in the direction connecting the figure center ofthe first figure F1 and the figure center of the second figure F2) CLpassing through the figure center F1C of the first figure F1 and thefigure center F2C of the second figure F2 are detected, the seconddetecting process portion 51 detects these four figures as the four codefigures included in the data area that the marker Mk has.

After the process for detecting the data area in Step S330 is executed,the second detecting process portion 51 determines whether the detectionof the data area in Step S330 succeeds or not (Step S340). In a casewhere it is determined that the detection of the data area does notsucceed (failed) (Step S340-No), the second detecting process portion 51proceeds to Step S310 and selects a next marker. In this example, themarker that can be selected in Step S310 is only the marker Mk.Therefore, in a case where the second detecting process portion 51determines that the detection of the data area does not succeed, theinformation illustrating failure in the detection of the marker isgenerated as the results of the marker detection process and ends theprocess. Meanwhile, in a case where the second detecting process portion51 determines that the detection of the data area succeeds (StepS340-Yes), the position and posture calculating portion 52 calculatesthe position and the posture of the marker Mk as the position and theposture in the robot coordinate system of the target object O based onthe first figure F1 and the second figure F2 detected in Step S320 (StepS350). The position of the captured image and the position in the robotcoordinate system are associated with each other by calibration inadvance.

Here, the process for calculating the posture of the marker Mk in theprocess of Step S350 is described. In this example, the position andposture calculating portion 52 calculates the posture of the firstfigure F1 as the posture (in this example, the posture of the targetobject O) of the marker Mk by setting the normal direction with respectto the first figure F1 in the figure center F1C of the first figure F1as the Z axis, the direction from the figure center F2C of the secondfigure F2 toward the figure center F1C of the first figure F1 as the Xaxis, and the direction intersecting to the aforementioned Z axis andthe aforementioned X axis as the Y axis. Instead of this, the positionand posture calculating portion 52 may have a configuration ofcalculating the posture of the marker Mk by another method based on thefigure center F1C of the first figure F1.

After the position and the posture of the target object O in the robotcoordinate system in Step S350 are calculated, the code detectionportion 53 specifies that each of these four code figures is any one ofthe figures FD1 to FD16, based on the data area detected by the seconddetecting process portion 51 in Step S330, that is, the four codefigures included in the aforementioned data area and the process of theflow chart illustrated in FIG. 12. The code detection portion 53 detectsthe code that the specified four code figures indicate (Step S360).

Subsequently, the code detection portion 53 determines whether the codedetected in Step S360 is appropriate information or not (Step S370). Inthis example, the appropriate information is robot operation informationwith which the robot control device 30 is operated in the robot 20without an error.

In a case where it is determined that the aforementioned code is not theappropriate information, the code detection portion 53 generates theinformation illustrating the failure in the detection of the marker Mkas the results of the marker detection process. The image processportion 44 proceeds to Step S310 and selects a next marker. In thisexample, the marker that can be selected in Step S310 is only the markerMk. Therefore, the image process portion 44 generates the results of theaforementioned marker detection process and ends the process.

Meanwhile, in a case where it is determined that the aforementioned codeis appropriate information, the code detection portion 53 generatesinformation including the position and the posture of the marker Mkcalculated by the position and posture calculating portion 52 in StepS350 and the code detected in Step S360 as the results of markerdetection process. The image process portion 44 proceeds to Step S310and selects a next marker. In this example, the image process portion 44generates the results of the aforementioned marker detection process andends the process.

In this manner, the robot control device 30 detects the first figure F1and detects the data area based on the figure center F1C of the firstfigure F1. Accordingly, the robot control device 30 can suppress thefailure of the detection of the marker Mk by the external factor withrespect to the marker Mk.

In the process of the flow chart illustrated in FIG. 13, the descriptionhas been made in an assumption that the resolution of the captured imageincluding the marker Mk is in a range in which 32 cells configuring therespective four code figures included in the data area aredifferentiated by the second detecting process portion 51. In order toguarantee this assumption, the first detecting process portion 50 mayhave a configuration of determining whether the size of any one or bothof the detected first figure F1 and the detected second figure F2 in theprocess of Step S320 of the flow chart illustrated in FIG. 13 is thepredetermined size or greater or not.

In a case where the first detecting process portion 50 determines thatthe size of any one or both of the detected first figure F1 and thedetected second figure F2 is not the predetermined size or greater, theimage process portion 44 generates the information illustrating thefailure in the detection of the marker Mk as the results of the markerdetection process and ends the process.

Meanwhile, in a case where the first detecting process portion 50determines that the size of any one or the both of the detected firstfigure F1 and the detected second figure F2 is predetermined size orgreater, the second detecting process portion 51 executes the process ofStep S330 of the flow chart illustrated in FIG. 13. The predeterminedsize is indicated by, for example, the number of pixels configuring anyone or the both of the detected first figure F1 and the detected secondfigure F2 and is a value determined according to the resolution of theimage capturing portion that captures the captured image.

Modified Example 1 of First Embodiment

Hereinafter, Modified Example 1 according to the first embodiment of theinvention is described with respect to the drawings. The marker attachedto the target object O described in the first embodiment may be a markerMk1 described in this example, instead of the marker Mk. That is, inModified Example 1 according to the first embodiment, the robot controldevice 30 detects the marker Mk1, instead of the marker Mk. The markerMk1 is a marker in a configuration in which only the second figure F2 isomitted (deleted) from the marker Mk.

Details of Marker According to Modified Example 1 of First Embodiment

FIG. 15 is a diagram illustrating an example of the marker according toModified Example 1 of the first embodiment. As illustrated in FIG. 15,differently from the marker Mk, the marker Mk1 has only the first figureF1, without having the second figure F2. That is, the marker Mk1 has thesame characteristics as the marker Mk, except for not having the secondfigure F2. In the example illustrated in FIG. 15, the marker Mk1includes the figure FD5, the figure FD10, the figure FD16, and thefigure FD1 in the data area, as the aforementioned code figure.

With Respect to Flow of Marker Detection Process in Modified Example 1According to First Embodiment

Hereinafter, the flow of the marker detection process in ModifiedExample 1 according to the first embodiment is described. In ModifiedExample 1 according to the first embodiment, in the flow chartillustrated in FIG. 4, the image process portion 44 performs a processof Step S120 a described below, instead of the process of Step S120.FIG. 16 is a flow chart illustrating an example of the flow of themarker detection process executed by the image process portion 44 inModified Example 1 according to the first embodiment. In FIG. 16, theprocess of Step S310 and the processes of Steps S350 to S370 are thesame processes as the process of Step S310 and the processes of StepsS350 to S370 illustrated in FIG. 13, and thus descriptions thereof areomitted.

The image process portion 44 reads marker information including theinformation illustrating the first figure that each of one or moremarkers stored in the storage portion 32 in advance has from the storageportion 32 (Step S400). In this example, at least the information inwhich the information illustrating the marker and the informationillustrating the first figure that the marker has are associated witheach other is included in the marker information. For example, theinformation in which the information illustrating the marker Mk1 and theinformation illustrating the first figure F1 that the marker Mk1 has areassociated with each other is included in the marker information.Hereinafter, for easier description, a case where only theaforementioned information is included in the marker information isdescribed.

Subsequently, the first detecting process portion 50 extracts theinformation illustrating the first figure F1 associated with the markerID illustrating the selected marker Mk1 as the target marker in StepS310 from the marker information. The first detecting process portion 50detects the first figure F1 from the captured image acquired by theimage acquisition portion 42 in Step S110 illustrated in FIG. 4, basedon the information illustrating the extracted first figure F1 and thedetection method of the marker described above (Step S405). The processfor detecting the first figure F1 from the captured image in Step S405is the same as the process for detecting the first figure F1 among thefirst figure F1 and the second figure F2 in Step S320, and thusdescriptions thereof are omitted.

Subsequently, the second detecting process portion 51 selects the searchdirection with the figure center F1C of the first figure F1 detected inStep S405 as a starting point, in a range from 0° to 360° in acounterclockwise direction with a predetermined direction as 0° andrepeatedly performs processes of Steps S420 to S430 for each selectedsearch direction (Step S410). For example, the predetermined directionis a positive direction in the X axis of the image capturing elementused in the capturing of the captured image. Instead of this, thepredetermined direction may be another direction such as a randomlydetermined direction. The search direction is an example of thedirection passing through the figure center of the first figure.

Specifically, the second detecting process portion 51 performs theprocesses of Steps S420 to S430 by selecting 0° which is a predetermineddirection as a search direction, selects a direction (0°+the angle AG)obtained by adding a predetermined angle AG to 0° as a next searchdirection, and performs processes of Steps S420 to S430. The seconddetecting process portion 51 performs the processes Step S420 to S430with (0°+angle AG) as the search direction and selects a direction(0°+2AG) obtained by adding the predetermined angle AG to (0°+angle AG)as the search direction in the next processes of Steps S420 to S430. Byrepeating this, the second detecting process portion 51 repeatedlyperforms the processes of Steps S420 to S430 for each search directionselected in the range of 0° to 360°. The predetermined angle is, forexample, 0.1°. Instead of this, the predetermined angle may be anotherangle.

After the search direction is selected in Step S410, the seconddetecting process portion 51 detects the four code figures included inthe data area from the figure center F1C of the first figure F1 detectedin Step S405 in the search direction selected in Step S410 (Step S420).Specifically, the second detecting process portion 51 detects thecandidate of the four code figures included in the data area from thefigure center F1C of the first figure F1 detected in Step S405 in thesearch direction selected in Step S410. In a case where the four figureswhich become the aforementioned candidates in the aforementioned searchdirection are detected, the second detecting process portion 51calculates respective figure centers of the aforementioned four figures.In a case where all of the calculated figure centers are positioned onthe straight line extending from the figure center F1C of the firstfigure F1 in the aforementioned search direction, the second detectingprocess portion 51 specifies that the detected four figures are the fourcode figures included in the data area.

Subsequently, the second detecting process portion 51 determines whetherthe detection of the four code figures included in the data area thatthe marker Mk1 has in Step S420, that is, the aforementioned data areasucceeds or not (Step S430). In a case where the second detectingprocess portion 51 determines that the detection of the four codefigures succeeds (Step S430-Yes), the position and posture calculatingportion 52 proceeds to Step S350 and calculates the position and theposture of the marker Mk1 as the position and the posture in the robotcoordinate system of the target object O. Meanwhile, in a case where itis determined that the detection of the four code figures does notsucceed (fails) (Step S430-No), the second detecting process portion 51proceeds to Step S410 and selects a next search direction fromunselected search directions.

FIG. 17 is a diagram visually describing an overview of processes ofSteps S410 to S430 in the flow chart illustrated in FIG. 16. Two arrowsare illustrated from the figure center F1C of the marker Mk1 illustratedin FIG. 17 in directions different from each other. An arrow S1 which isone of the aforementioned two arrows extends from the figure center F1Cin the positive direction of the X axis in the coordinate systemillustrated in FIG. 17. Meanwhile, an arrow S2 which is one of theaforementioned two arrows extends in a direction obtained bycounterclockwisely rotating the arrow S1 about the figure center F1C asa center by an angle R1.

In FIG. 17, the arrow S1 indicates a predetermined direction initiallyselected as a search direction in Step S410 illustrated in FIG. 16. Asillustrated in FIG. 17, the four code figures included in the data areathat the marker Mk1 has do not exist in the direction illustrated by thearrow S1. Therefore, the second detecting process portion 51counterclockwisely changes the search direction from the direction ofthe arrow S1 and detects the aforementioned code figure for each changedsearch direction. In a case where the direction of the arrow S2 in StepS410 is selected, the second detecting process portion 51 can detect theaforementioned code figure.

In this manner, even in a case where the marker attached to the targetobject O does not have the second figure, the robot control device 30can detect the position and the posture of the marker and the codeillustrated by one or more code figures included in the data area thatthe marker has and thus the same effect as in the first embodiment canbe obtained.

Modified Example 2 of First Embodiment

Hereinafter, Modified Example 2 according to the first embodiment of theinvention is described with reference to the drawings. Instead of themarker Mk and the marker Mk1, the marker attached the target object Odescribed in the first embodiment above may be the marker Mk2 describedin this example. That is, in Modified Example 2 according to the firstembodiment, instead of the marker Mk and the marker Mk1, the robotcontrol device 30 detects the marker Mk2. The marker Mk2 is a markerhaving a configuration including only one code figure FC described belowin the data area that the marker Mk has, instead of the four codefigures.

Details of Marker According to Modified Example 2 of First Embodiment

FIG. 18 is a diagram illustrating an example of the marker according toModified Example 2 of the first embodiment. As illustrated in FIG. 18,differently from the marker Mk, the marker Mk2 has only one code figureFC in the data area W3. That is, the marker Mk2 has the samecharacteristics as the marker Mk, except for the code figure included inthe data area W3. The code figure FC indicates one code, differentlyfrom the four code figures included in the data area that the marker Mkhas.

In the example illustrated in FIG. 18, the code figure FC is atwo-dimensional code in which 24 square-shaped cells are arranged infour rows and six columns. Each of the aforementioned cells is any oneof a white cell or a black cell. The code figure FC includes a fixedcode used as a sign for detecting the code figure FC. The fixed code isconfigured with cells of which colors are fixed (colors are not changed)among the cells that configure the code figure FC. That is, in thisexample, the fixed code is not a portion of the codes that the codefigure FC indicates.

In the example illustrated in FIG. 18, among the cells indicating thefixed codes, there are five white cells on the first row and the firstcolumn, on the first row and the third column, on the first row and thefifth column, on the third row and the first column, and on the fourthrow and the fifth column in the aforementioned four rows and sixcolumns. Among the cells indicating the aforementioned fixed code, thereare five black cells on the first row and the second column, on thefirst row and the third column, on the first row and the fifth column,on the second row and the first column, on the fourth row and the firstcolumn in the aforementioned four rows and six columns. Instead of this,the white cells or the black cells indicating the fixed codes may be atany positions in the aforementioned four rows and six columns.

The code figure FC indicates a code of 12 bits with the remained 12cells except for the cells indicating the fixed codes among theaforementioned four rows and six columns, by causing white and black tobe considered as binary numbers of 0 and 1. That is, all the codeindicated by the code figure FC is indicated with these 12 cells (aportion of the code is not indicated by fixed codes as described above).In FIG. 18, all of these 12 cells are included in a hatched area CD1. Inthe hatched area CD1 illustrated in FIG. 18, colors of all of these 12cell are omitted.

With Respect to Flows of Marker Detection Process According to ModifiedExample 2 of First Embodiment

Hereinafter, the flow of the marker detection process according toModified Example 2 of the first embodiment is described. According toModified Example 2 of the first embodiment, in the flow chartillustrated in FIG. 4, the image process portion 44 performs a processof Step S120 b described below, instead of the process of Step S120.

FIG. 19 is a flow chart illustrating an example of the flow of themarker detection process executed by the image process portion 44according to Modified Example 2 of the first embodiment. In FIG. 19,processes of Steps S300 to S320, processes of Steps S340 to S350, and aprocess of Step S370 are the same processes as the processes of StepsS300 to S320, the processes of Steps S340 to S350, and the process ofStep S370 illustrated in FIG. 13. Therefore, descriptions thereof areomitted.

After the first figure F1 and the second figure F2 are detected in StepS320, the second detecting process portion 51 detects the data area thatthe marker Mk2 has, based on the aforementioned first figure F1 and theaforementioned second figure F2 (Step S330 b). Here, the process of StepS330 b is described. The second detecting process portion 51 executesthe process for detecting a figure included between the first figure F1and the second figure F2 as the data area that the marker Mk2 has, as acandidate of the code figure FC. In this process, the second detectingprocess portion 51 searches for (detects) a fixed code from the figureincluded between the first figure F1 and the second figure F2. In a casewhere the fixed code is detected from the aforementioned figure, thesecond detecting process portion 51 detects this figure as the codefigure FC included in the data area that the marker Mk2 has. When thefixed code is detected, the second detecting process portion 51 detectsthe fixed code by the method well-known in the related art, such asreading a model figure of the fixed code from the storage portion 32 inadvance and detecting the fixed code by pattern matching using the readaforementioned model figure.

After the position and the posture of the marker Mk2 in Step S350 arecalculated as the position and the posture in the robot coordinatesystem of the target object O, the code detection portion 53 detects thecode indicated by the code figure FC, by detecting respective positionsand colors of 12 cells except for 12 cells which are the fixed code fromthe code figure FC detected in Step S330 b (Step S360 b). The detectionmethod of the code in Step S360 b is the same as the detection method ofthe two-dimensional code well-known in the art, and thus descriptionsthereof are omitted.

In this manner, even in a case where the marker attached to the targetobject O is a marker having the same characteristics as the marker Mk2,the robot control device 30 can detect the position and the posture ofthe marker and the code illustrated by the code figure included in thedata area that the marker has. Therefore, the same effect as the firstembodiment can be obtained.

The process of the flow chart illustrated in FIG. 19 is described in anassumption that the resolution of the captured image including themarker Mk2 is in a range in which respective cells of the code figure FCincluded in the data area can be differentiated by the second detectingprocess portion 51. Since this assumption is guaranteed, the firstdetecting process portion 50 has a configuration of determining whetherthe size of any one or both of the detected first figure F1 and thedetected second figure F2 is the predetermined size or greater in theprocess of Step S320 in the flow chart illustrated in FIG. 19. In a casewhere the first detecting process portion 50 determines that the size ofany one or the both of the detected first figure F1 and the detectedsecond figure F2 is not the predetermined size or greater, the imageprocess portion 44 generates the information illustrating that thedetection of the marker Mk2 fails as a result of the marker detectionprocess and ends the process. Meanwhile, in a case where the firstdetecting process portion 50 determines that the size of any one or theboth of the detected first figure F1 and the detected second figure F2is the predetermined size or greater, the second detecting processportion 51 executes a process of Step S330 b of the flow chartillustrated in FIG. 19.

Modified Example 3 of First Embodiment

Hereinafter, Modified Example 3 according to the first embodiment of theinvention is described with reference to the drawings. The markerattached to the target object O described in the first embodiment may bea marker Mk3 described in this example instead of the marker Mk, themarker Mk1, and the marker Mk2. That is, in Modified Example 3 of thefirst embodiment, the robot control device 30 detects the marker Mk3,instead of the marker Mk, the marker Mk1, and the marker Mk2. The markerMk3 is a marker having a configuration including only one code figure FCdescribed in Modified Example 2 according to the first embodiment in thedata area that the marker Mk1 has, instead of the four code figures.

Details of Marker in Modified Example 3 According to First Embodiment

FIG. 20 is a diagram illustrating an example of the marker according toModified Example 3 of the first embodiment. As illustrated in FIG. 20,the marker Mk3 has only one code figure FC in the data area W3,differently from the marker Mk1. That is, the marker Mk3 has the samecharacteristics as the marker Mk1, except for the code figure includedin the data area W3.

With Respect to Flow of Marker Detection Process According to ModifiedExample 3 of First Embodiment

Hereinafter, the flow of the marker detection process according toModified Example 3 of the first embodiment is described. In ModifiedExample 3 of the first embodiment, in the flow chart illustrated in FIG.4, the image process portion 44 performs a process of Step S120 cdescribed below, instead of the process of Step S120.

FIG. 21 is a flow chart illustrating an example of the flow of themarker detection process executed by the image process portion 44according to Modified Example 3 of the first embodiment. In FIG. 21, theprocess of Step S310, the processes of Steps S350 to S370, the processof Step S400, the process of Step S405, and the process of Step S430 arethe same as the process of Step S310, the processes of Steps S350 toS370, the process of Step S400, the process of Step S405, and theprocess of Step S430 illustrated in FIG. 17, and thus descriptionsthereof are omitted.

After the first figure F1 is detected in Step S405, the second detectingprocess portion 51 detects a data area that the marker Mk3 has, based onthe first figure F1 (Step S420 c). Here, the processes of Step S420 care described. First, the second detecting process portion 51 executes aprocess for searching (detecting) a portion of the code figure FC as asign of illustrating the data area, in order to detect the data areathat the marker Mk3 has, from the periphery of the first figure F1. Inthis example, the aforementioned sign is a portion of a fixed code thatthe code figure FC has. Instead of a portion of the fixed code, theaforementioned sign may be all of the fixed code or may be a portion ofthe code figure FC different from the fixed code.

In this example, the sign illustrating the data area is cells includedin a column closest to the first figure F1 among the cells thatconfigure the code figure FC and arranged in four rows and six columns,that is, four cells (a portion of the fixed code) on the first row andthe first column, on the second row and the first column, on the thirdrow and the first column, and on the fourth row and the first columnamong the cells included in the fixed code. FIG. 22 is a diagramillustrating an example of a sign illustrating a data area for which thesecond detecting process portion 51 searches a periphery of the firstfigure F1 in Step S420 c. As illustrated in FIG. 22, the aforementionedsign is a portion of the fixed code included in a column closest to thefirst figure F1, that is, a column in an area W5 illustrated in FIG. 22,among cells that configure the code figure FC and arranged in four rowsand six columns.

For example, in a case where the size of the first figure F1 detected inStep S405 is expanded by times of a predetermined value, the peripheryof the first figure F1 searched by the second detecting process portion51 is an area in a range included the expanded aforementioned size. Thepredetermined value is, for example, about 4 times. The predeterminedvalue is a value corresponding to the first figure F1 detected from thecaptured image and may be another value, as long as the predeterminedvalue is a value that can detect a sign (a portion of the fixed code)illustrating the data area in this example. When the aforementioned signis detected, the second detecting process portion 51 detects theaforementioned sign by the method known in the related art of readingthe model figure of a portion of the fixed code that becomes theaforementioned sign from the storage portion 32 in advance and detectingthe aforementioned sign by pattern matching using the readaforementioned model figure.

After the sign illustrating the data area is detected, the seconddetecting process portion 51 performs a process for searching for(detecting) the entire fixed code that the code figure FC has, from thepredetermined search range in a direction from the figure center F1C ofthe first figure F1 toward the aforementioned sign. In a case where thefixed code is detected from the aforementioned search range, the seconddetecting process portion 51 detects a figure including the detectedfixed code as the code figure FC.

In this manner, in a case where the marker attached to the target objectO is a marker having the same characteristics as the marker Mk3, therobot control device 30 can detect the position and the posture of themarker and the code illustrated by the code figure included in the dataarea that the marker has. Therefore, it is possible to obtain the sameeffect of the first embodiment.

Modified Example 4 of the First Embodiment

Hereinafter, Modified Example 4 according to the first embodimentaccording to the invention is described with reference to the drawings.The marker attached to the target object O described in the firstembodiment may be a marker Mk4 described in this example, instead of themarker Mk, the marker Mk1, the marker Mk2, and the marker Mk3. That is,in Modified Example 4 according to the first embodiment, the robotcontrol device 30 detects the marker Mk4, instead of the marker Mk, themarker Mk1, the marker Mk2, and the marker Mk3.

Details of Marker According to Modified Example 4 of First Embodiment

FIG. 23 is a diagram illustrating an example of a marker according toModified Example 4 of the first embodiment. As illustrated in FIG. 23,the marker Mk4 has the first figure F1 and a data area CR disposed inthe first figure F1, differently from each of the marker Mk, the markerMk1, the marker Mk2, and the marker Mk3. In the example illustrated inFIG. 23, the first figure F1 is a figure center marker in whichmultiplicity of the figure center is 4.

In the example illustrated in FIG. 23, the data area CR is an area on awhite figure between a figure in a frame shape of a black squaredisposed on the most exterior side illustrated in FIG. 23 among the fourfigures configuring the first figure F1 and a figure in a black ringshape disposed on an inner side of the aforementioned figure illustratedin FIG. 23. Two code figures are disposed in the data area CR. In theexample illustrated in FIG. 23, these code figures are two figures of acode figure FC1 and a code figure FC2.

Each of the code figure FC1 and the code figure FC2 is a two-dimensionalcode in which nine cells in a square shape are arranged in three rowsand three columns. Therefore, each of the code figure FC1 and the codefigure FC2 can indicate a code of nine bits by aforementioned colors(white and black) of respective cells arranged on three rows and threecolumns. The code figure FC1 and the code figure FC2 respectively havefixed codes which are different from each other. These fixed codes aresigns for detecting the code figure FC1 and the code figure FC2,respectively. The robot control device 30 can detect and differentiateeach of the code figure FC1 and the code figure FC2, based on theaforementioned fixed codes. The fixed code that the code figure FC1 hasis three cells of a black cell on the first row and the first column, awhite cell on the second row and the first column, and a black cell onthe third row and the first column among the cells arranged on threerows and three columns, and the fixed code that the code figure FC2 hasis three cells of a black cell on the second row and the first column, awhite cell on the second row and the second column, and a black cell onthe second row and the third column among the cells arranged on threerows and three columns. Instead of these, positions of the cells of thefixed codes that the code figure FC1 and the code figure FC2respectively have may be other positions. Instead of these, the numbersof the cells of the fixed codes that the code figure FC1 and the codefigure FC2 respectively have may be other numbers. In order tosimplifying the drawing, in FIG. 23, the cells (cells indicating codes)other than the fixed codes respectively in the code figure FC1 and thecode figure FC2 are illustrated to be hatched, and respective colors ofthe aforementioned cells are omitted.

With Respect to Flow of Marker Detection Process According to ModifiedExample 4 of First Embodiment

Hereinafter, the flow of the marker detection process according toModified Example 4 of the first embodiment is described. According toModified Example 4 of the first embodiment, in the flow chartillustrated in FIG. 4, the image process portion 44 performs a processof Step S120 d described below, instead of the process of Step S120.

FIG. 24 is flowchart illustrating an example of a flow of a markerdetection process that the image process portion 44 executes, accordingto Modified Example 4 of the first embodiment. In FIG. 24, the processof Step S310, the process of Step S340, the process of Step S360 b, theprocess of Step S370, and the process of Step S400 are the sameprocesses as the process of Step S310, the process of Step S340, theprocess of Step S360 b, and the process of Step S370 illustrated in FIG.19 and the process of Step S400 illustrated in FIG. 16, and thusdescriptions thereof are omitted.

After the marker Mk4 is selected as a target marker in Step S310, thefirst detecting process portion 50 extracts information illustrating thefirst figure F1 associated with the marker ID illustrating the markerMk4, from marker information. The first detecting process portion 50detects the first figure F1 from the captured image acquired by theimage acquisition portion 42 in Step S110 illustrated in FIG. 4, basedon information illustrating the extracted first figure F1 and thedetection method of the figure center marker described above (Step S320d).

Here, the process of Step S320 d is described. The first detectingprocess portion 50 detects the figure center marker having multiplicityof 3 or greater from the captured image, as the first figure F1. Sincenot only the positions of the figure centers of the code figure FC1 andthe code figure FC2 included in the data area but also the positions ofthe figure centers of the respective four figures that the first figureF1 configures do not belong to the predetermined range, the seconddetecting process portion 51 can ignore the code figure FC1 and the codefigure FC2 when detecting the first figure F1. Since the multiplicity ofa figure center of each of the code figure FC1 and the code figure FC2is 1, the first detecting process portion 50 does not erroneously detectthe code figure FC1 and the code figure FC2 as the first figure F1.

Subsequently, the second detecting process portion 51 detects each ofthe code figure FC1 and the code figure FC2 that the data area that themarker Mk4 has, that is, the aforementioned data area has, based on thefirst figure F1 detected in Step S320 d (Step S330 d). Here, the processof Step S330 d is described. The second detecting process portion 51searches an inner side of the first figure F1 detected in Step S320 dand detects the fixed code that the code figure FC1 has. The seconddetecting process portion 51 searches another code which is a code thatthe code figure FC1 has, from the figure center F1C of the first figureF1 in the direction of the aforementioned fixed code and which isdifferent from the fixed code, and detects the entire code figure FC1.The second detecting process portion 51 searches the inner side of thefirst figure F1 detected in Step S320 d and detects the fixed code thatthe code figure FC2 has. The second detecting process portion 51searches another code which is a code that the code figure FC2 has andthat is different from the fixed code, from the figure center F1C of thefirst figure F1 in the direction of the aforementioned fixed code anddetects the entire code figure FC2.

After it is determined that the detection of the data area in Step S340succeeds, the position and posture calculating portion 52 calculates theposition and the posture of the marker Mk4 based on the figure centerF1C of the first figure F1 (Step S350 d). Here, the process forcalculating the posture of the marker Mk4 in the process of Step S350 dis described. In this example, the position and posture calculatingportion 52 calculates the posture of the first figure F1 as the postureof the marker Mk4 (in this example, the posture of the target object O),by setting the normal direction with respect to the first figure F1 inthe figure center F1C of the first figure F1 as an Z axis, a directionfrom the code figure FC2 detected from the inner side of the firstfigure F1 in Step S330 d toward the code figure FC1 as an X axis, and adirection intersecting to the aforementioned Z axis and theaforementioned X axis as an Y axis.

In this manner, even in a case where the marker attached to the targetobject O is a marker having the same characteristics as the marker Mk4,the robot control device 30 can detect the position and the posture ofthe marker and the code illustrated by the code figure included in thedata area that the marker has. Therefore, the same effect as the firstembodiment can be obtained.

In this example, the code detection portion 53 may have a configurationsuch as a configuration of integrating the sizes of the correspondingcells respectively in the code figure FC1 and the code figure FC2 anddetecting the integrated values as codes.

With Respect to Correction of Distortion in First Embodiment andModified Examples 1 to 3 of First Embodiment

In the first embodiment and Modified Examples 1 to 3 of the firstembodiment, there is a case where the first figure F1 detected by thefirst detecting process portion 50 from the captured image or each ofthe first figure F1 and the second figure F2 is distorted, that is, acase where the marker to be detected from the captured image may bedistorted in the captured image.

For example, in a case where a surface of the marker Mk2 is captured bythe aforementioned image capturing portion in a state of being inclinedto an optical axis of the image capturing portion, the marker Mk2 isdistorted in the captured image. That is, the surface of the marker Mk2is captured to be oblique to the aforementioned optical axis. Thesurface of the marker Mk2 is a surface on a side on which the firstfigure F1 is drawn. There is a case where the captured image in whichthe marker Mk2 is captured in a distorted manner is corrected(converted) to an image in which the marker Mk2 is not distorted byaffine transformation (affine warp).

For example, in a case where the marker Mk2 in the captured imagedescribed above is sufficiently smaller than the size of the entirecaptured image, the captured image in which the marker Mk2 is capturedin a distorted manner can be corrected to an image in which the markerMk2 is not approximately distorted by affine transformation. Thecaptured image in which the marker Mk2 is captured in a distorted mannermay be the entire captured image or may be a portion of the capturedimage including the marker Mk2. In this case, when the second detectingprocess portion 51 detects the data area that the marker Mk2 has, thecaptured image in which the marker Mk2 is captured in a distorted manneris corrected to an image in which the marker Mk2 is not distorted byaffine transformation.

Here, the respective images of the first figure F1 and the second figureF2 that the marker Mk2 has which are distorted in a degree capable ofbeing corrected by affine transformation has in the captured image donot have a circular shape but an elliptical shape. FIG. 25 is a diagramillustrating an example of the marker Mk2 that is distorted in a degreecapable of being corrected by affine transformation in the capturedimage. In FIG. 25, the second figure F2 that the marker Mk2 has isomitted. In order to correct a captured image in which the marker Mk2illustrated in FIG. 25 is captured in a distorted manner, the seconddetecting process portion 51 calculates respective directions of a majoraxis MA1 and a minor axis MA2 of the first figure F1 distorted from acircular shape to an elliptical shape in the captured image as main axisdirections and calculates a ratio of lengths of the aforementioned majoraxis and the aforementioned minor axis as a main axis ratio. The firstdetecting process portion 50 calculates a normal direction N1 withrespect to the first figure F1 in the figure center F1C of the firstfigure F1, based on the aforementioned main axis direction, theaforementioned main axis ratio, and geometry.

The normal direction N1 is a direction of the virtual three-dimensionalspace indicated by the position and the posture by the three-dimensionalcoordinate system illustrated in FIG. 25. In FIG. 25, the Z axisdirection of the aforementioned three-dimensional coordinate systemcoincides with the direction in which the normal direction N1 extends ina case where the marker Mk2 is not distorted in the captured image. Thesecond detecting process portion 51 performs affine transformation basedon the normal direction N1 such that the normal direction N1 coincideswith the Z axis direction of the aforementioned three-dimensionalcoordinate system as illustrated with FIG. 26 and causes the firstfigure F1 in the captured image in which the marker Mk2 is captured in adistorted manner to approximately coincide with a model image of thefirst figure F1 which is the information illustrating the first figureF1 in this example described above. FIG. 26 is a diagram illustrating anexample of the normal direction N1 of the marker Mk2 that is notdistorted. Accordingly, the aforementioned captured image is correctedto an image in which the marker Mk2 is not substantially distorted (notapproximately distorted). As a result, the second detecting processportion 51 can detect a data area from the corrected aforementionedimage accurately.

However, the captured image in which the marker Mk2 is captured in adistorted manner cannot be corrected by affine transformation in somecases. In this case, the second detecting process portion 51 performshomography conversion (homography warp) on the aforementioned capturedimage, instead of the affine transformation, and corrects theaforementioned captured image to an image in which the marker Mk2 is notdistorted.

In this case, the second detecting process portion 51 calculates thenormal direction N1 in the figure center F1C of the first figure F1, inthe same manner as in the case of performing affine transformationdescribed above. The second detecting process portion 51 detects a signof the code figure FC and detects the entire code figure FC, asdescribed in Step S330 b in the flow chart illustrated in FIG. 19. Thesecond detecting process portion 51 sets an initial value of homographyconversion.

After the initial value of the homography conversion is set, the seconddetecting process portion 51 normalizes the aforementioned capturedimage, by performing bilinear interpolation process on the capturedimage in which the marker Mk2 is captured in a distorted manner. Thesecond detecting process portion 51 derives a coefficient of homographyconversion based on the normalized aforementioned captured image, anonlinear optimization method (ESM), and the model image of the firstfigure F1 described above, such that a matching error between the firstfigure F1 in the captured image in which the marker Mk2 is captured in adistorted manner and the model image the first figure F1 which is theinformation illustrating the first figure F1 in this example describedabove becomes minimum. In a case where the aforementioned matching erroris the predetermined error value or less, the second detecting processportion 51 determines that the image of the marker Mk2 that is notdistorted is obtained. In a case where the aforementioned matching erroris not the predetermined error value or less, the second detectingprocess portion 51 determines that the image of the marker Mk2 that isnot distorted is not obtained and repeatedly performs processes from thebilinear interpolation process to the derivation of the coefficient ofthe homography conversion in which the matching error becomes minimum.

The code detection portion 53 can detect a code having high accuracybased on the code figure FC included in the data area that the markerMk2 has, using an image which is obtained by such homography conversionand in which the marker Mk2 is not distorted.

In a case where homography conversion is performed on the captured imagein which the marker Mk2 is captured in a distorted manner to an image inwhich the marker Mk2 is not distorted, a repetitive process using ESM isrequired compared with a case where the affine transformation isperformed. Therefore, the time required by the marker Mk2 for detectionbecomes longer. Since the homography conversion has a small error when adistorted image is corrected to an image which is not distorted,compared with a case where affine transformation is performed, detectionaccuracy of the marker Mk2 increases. The affine transformation or thehomography conversion is not limited to an application to the markerMk2, and can be applied to any one of the marker Mk, the marker Mk1, andthe marker Mk3.

In a case where the detected marker is the marker Mk or the marker Mk1,even if the aforementioned marker in the captured image is distorted toa degree capable of being corrected by affine transformation, the seconddetecting process portion 51 can detect the data area that theaforementioned marker has, without using the affine transformation. FIG.27 is a diagram illustrating an example of the marker Mk in the capturedimage in a case where the marker Mk is captured in a distorted manner ina degree capable of being corrected by the affine transformation.

As illustrated FIG. 27, even in a case where the marker Mk is capturedin a distorted manner, respective figure centers (the figure center C5,the figure center C10, the figure center C161 and the figure centerC162, and the figure center C1) of the four code figures that the markerMk has are not deviated from the straight line CL passing through thefigure center F1C of the first figure F1 and the figure center F2C ofthe second figure F2.

According to this, even in a case where the marker Mk in the capturedimage is distorted in a degree capable of being corrected by the affinetransformation, the second detecting process portion 51 determineswhether plural images included between the first figure F1 and thesecond figure F2 are each of the four code figures included in the dataarea of the marker Mk or not, according to the method illustrated inFIG. 14.

With Respect to Correction of Distortion According to Modified Example 4of First Embodiment

According to Modified Example 4 of the first embodiment described above,there is a case where the first figure F1 detected by the firstdetecting process portion 50 from the captured image is distorted, thatis, a case where the marker detected from the captured image isdistorted in the captured image.

For example, in a case where the surface of the marker Mk4 is capturedby the aforementioned image capturing portion in a state of beinginclined to the optical axis of the image capturing portion, the markerMk4 is distorted in the captured image. That is, the surface of themarker Mk4 is captured in a manner of being oblique to theaforementioned optical axis. The surface of the marker Mk4 is a surfaceon which the first figure F1 is drawn. There is a case where thecaptured image in which the marker Mk4 is captured in a distorted manneris corrected (converted) to an image in which the marker Mk4 is notdistorted by affine transformation (affine warp).

For example, in a case where the marker Mk4 in the captured imagedescribed above is sufficiently smaller than the size of the entirecaptured image, the captured image in which the marker Mk4 is capturedin a distorted manner can be corrected to an image in which the markerMk4 is approximately not distorted by affine transformation in the samemanner as the captured image in which the marker Mk2 described above iscaptured in a distorted manner is corrected to an image in which themarker Mk2 is not distorted by the affine transformation. The capturedimage in which the marker Mk4 is captured in a distorted manner may bethe entire captured image or may be a portion of the captured imageincluding the marker Mk4. In this case, when the second detectingprocess portion 51 detects the data area that the marker Mk4 has,captured image in which the marker Mk4 is captured in a distorted manneris corrected to an image in which the marker Mk4 is not distorted ion byaffine transformation.

However, in order to correct the captured image in which the marker Mk4is captured in a distorted manner to the image in which the marker Mk4is not distorted, there is a case where radon transform has to befurther performed. Here, a flow of processes in which the seconddetecting process portion 51 performs radon transform is described. Aprocess with respect to a case where the affine transformation isperformed on the captured image in which the marker Mk4 is captured in adistorted manner is the same process as the process with respect to acase where affine transformation is performed on the captured image inwhich the marker Mk2 is captured in a distorted manner, and thusdescriptions thereof are omitted.

After the image in which the marker Mk4 is not approximately distortedby affine transformation, the second detecting process portion 51executes the detection of the peak indicating a degree (similarity) inwhich the aforementioned image and the model image of the first figureF1 described above coincide with each other. In a case where theaforementioned peak is not detected, the second detecting processportion 51 determines that it is difficult to correct the captured imagein which the marker Mk4 is captured in a distorted manner to the imagein which the marker Mk4 is not distorted and ends the process forcorrecting the distortion. In this case, the second detecting processportion 51 generates the information illustrating that detection of themarker Mk4 fails.

Meanwhile, in a case where the aforementioned peak is detected, thesecond detecting process portion 51 performs radon transform of thepredetermined angle range in the direction from the code figure FC2 ofthe marker Mk4 toward the code figure FC1 based on the aforementionedpeak and corrects the angle and the size (scale) such that a peak whichis similarity between the image obtained by affine transformation inwhich the marker Mk4 is not approximately distorted and the model imageof the first figure F1 described above becomes maximum. The seconddetecting process portion 51 performs radon transform of thepredetermined angle range in the direction intersecting to the directionfrom the code figure FC2 of the marker Mk4 toward the code figure FC1based on the aforementioned peak and performs the correction of theangle and the size (scale) such that a peak which is similarity betweenthe image obtained by affine transformation in which the marker Mk4 isnot approximately distorted and the model image of the first figure F1described above becomes maximum.

The code detection portion 53 can detect the code with high accuracybased on the code figure FC1 and the code figure FC2 that are includedin the data area that the marker Mk4 has, using an image that isobtained by such radon transform and in which the marker Mk4 is notdistorted.

With Respect to Erroneous Correction of Code Illustrated by Code Figure

The code figure (the code figure FC, the code figure FC1 and the codefigure FC2) that the marker (each of the marker Mk1 to the marker Mk4)according to Modified Examples 2 to 4 the first embodiment describedabove has may have a configuration of including a check bit or a hummingcode in addition to a fixed code. For example, among the information of16 bits indicated by the aforementioned code figure, the code isillustrated by the information of 11 bits and the rest 5 bits are usedfor a humming code, such that an error of one bit can be corrected or anerror of two bits can be detected. Here, the marker Mk3 and the markerMk4 are described as an example. The content described below can beapplied to the marker Mk2.

FIG. 28 is a table illustrating an example of information relating tothe marker Mk3 and the marker Mk4. As illustrated in FIG. 28, the markerMk3 is created, for example, in the size of 10 mm×28 mm, 7 mm×20 mm, or5 mm×14 mm. The size of the marker Mk3 may be other sizes. In a casewhere the number of bits indicating the code of the code figure FC thatthe marker Mk3 has is set to be 12 bits without using a check bit, thenumber of bits that can correct an error is 0. Meanwhile, in a casewhere the number of bits indicating the code of the code figure FC thatthe aforementioned marker Mk3 has is set to be 11 bits using one checkbit, the number of bits that can correct an error is 1.

As illustrated in FIG. 28, the marker Mk4 is created, for example, inthe size of 10 mm×21 mm, 7 mm×15 mm, or 5 mm×11 mm. The size of themarker Mk4 may be other sizes. In a case where the number of bitsindicating the codes of the code figure FC1 and the code figure FC2 thatthe marker Mk4 has is set to be 18 bits without using a check bit or ahumming code, the number of bits that can correct an error is 0.Meanwhile, in a case where the number of bits indicating the codes ofthe code figure FC1 and the code figure FC2 that the aforementionedmarker Mk4 has is set to be 16 bits using two check bits, the number ofbits that can correct an error is 2. Meanwhile, in a case where thenumber of bits indicating the codes of the code figure FC1 and the codefigure FC2 that the aforementioned marker Mk4 has is set to be the codefigure FC1 and the code figure FC2 is set to be 11 bits using hummingcodes of 5 bits, the number of bits that can correct an error is 7.

As described above, the robot control device 30 (or an image processingdevice independent from the robot control device 30) of the robot 20according to first embodiment detects the first figure (in this example,the first figure F1) and detects a data area based on the figure center(in this example, the figure center F1C) of the aforementioned firstfigure. Accordingly, the robot control device 30 can suppress thefailure of the detection of the marker by an external factor withrespect to the marker (for example, each of the marker Mk, and themarker Mk1 to the marker Mk4 according to the first embodiment).

The robot control device 30 detects the data area based on the direction(in this example, search direction) that pass though the figure centerof the first figure. According to this, the robot control device 30 canperform a process based on the information indicated by the data area.

The robot control device 30 changes a direction for passing through thefigure center the aforementioned first figure with the figure center ofthe first figure, as a center, and detects the data area. Accordingly,even in a case where the first figure does not illustrate the directionfor passing through the figure center of the aforementioned firstfigure, the robot control device 30 can detect the data area.

The robot control device 30 detects the first figure and detects thedata area that has the figure (in this example, the figure FD1 to thefigure FD16, the code figure FC, the code figure FC1, and the codefigure FC2) in which the number of overlapped figure centers is smallerthan the aforementioned first figure. Accordingly, the robot controldevice 30 suppresses a figure that the data area has from beingerroneously detected as the first figure.

The robot control device 30 detects the first figure and the secondfigure (in this example, the second figure F2) and detects the data areabased on the figure center of the aforementioned first figure and thefigure center of the aforementioned second figure (in this example, thefigure center F2C). Accordingly, the robot control device 30 can morereliably detect the data area, based on the direction for passingthrough the figure center of the first figure.

The robot control device 30 detects the data area based on the directionin which the figure center of the first figure and the figure center ofthe second figure are connected to each other. Accordingly, the robotcontrol device 30 can more quickly detect the data area, based on thedirection in which the figure center of the first figure and the figurecenter of the second figure are connected to each other.

The marker (for example, each of the marker Mk and the marker Mk1 to themarker Mk4) according to the first embodiment causes the first figure tobe detected and causes the data area to be detected based on the figurecenter of the aforementioned first figure. Accordingly, the marker cansuppress the failure of the detection of the marker by the externalfactor with respect to the marker.

The marker causes the first figure and the second figure to be detectedand causes the data area to be detected based on the figure center ofthe aforementioned first figure and the figure center of theaforementioned second figure. Accordingly, the marker can more reliablycause the data area to be detected.

The image process portion 44 in the control portion 36 may beindependent from the robot control device 30 as the image processingdevice. In this case, the robot 20, the robot control device 30, and theaforementioned image processing device configure the robot system. Inthis case, the image processing device may have a configuration ofoutputting the information based on the detected marker to anotherdevice different from the robot control device 30 and displaying theaforementioned information to the aforementioned another device, such asthe augmented reality (AR). The information based on the detected markeris, for example, information associated with the aforementioned marker.

The data area that the robot control device 30 detects and the marker(the marker Mk or each of the marker Mk1 to the marker Mk4) has may havea configuration of including other markers such as a color marker, abarcode, a QR code (Registered trademark) as the code figure.

A portion or all of the first image capturing portion 21, the secondimage capturing portion 22, the third image capturing portion 23, andthe fourth image capturing portion 24 may be image capturing portionsindependent from the robot 20. In this case, the robot 20, the imagecapturing portions independent from the robot 20, the robot controldevice 30, and the image processing device configure the robot system.

Second Embodiment

Hereinafter, a second embodiment is described with reference todrawings. According to the present embodiment, differences from thefirst embodiment are mainly described, the same components are denotedby the same reference numerals, and descriptions thereof may be omittedor simplified.

FIG. 29 is a configuration diagram illustrating an example of a robot120 according to the second embodiment.

Configuration of Robot 120

First, a configuration of the robot 120 is described.

The robot 120 is a double arm robot including a first arm, a second arm,a support supporting the first arm and the second arm, and a robotcontrol device 130. The double arm robot is a robot including two armssuch as a first arm and a second arm in this example. The robot 120 is asingle arm robot, instead of a double arm robot. The single arm robot isa robot including one arm. For example, the single arm robot includesany one of a first arm and a second arm. The robot 120 may be a duplexarm robot including three or more arms, instead of a double arm robot.

The first arm includes the first end effector E1 and the firstmanipulator M1. The first arm according to the present embodiment is thesame as that according to the first embodiment, and thus descriptionsthereof are omitted.

The first end effector E1 is communicably connected to the robot controldevice 130 via cables. Accordingly, the first end effector E1 performsan operation based on a control signal acquired from the robot controldevice 130. For example, cable communication via cables is performed bystandards such as Ethernet (Registered trademark) or universal serialbus (USB). The first end effector E1 may have a configuration connectedto the robot control device 130 via wireless communication performed bycommunication standard such as Wi-Fi (Registered trademark).

The seven actuators (included in the joints) included in the firstmanipulator M1 are respectively communicably connected to the robotcontrol device 130 via cables. Accordingly, the aforementioned actuatorsoperates the first manipulator M1 based on a control signal acquiredfrom the robot control device 130. The cable communication via thecables is performed, for example, by standards such as Ethernet(Registered trademark) or USB. A portion or all of the seven actuatorsincluded in the first manipulator M1 may have a configuration of beingconnected to the robot control device 130 via wireless communicationperformed by communication standard such as Wi-Fi (Registeredtrademark).

The first image capturing portion 21 is the same as that according tothe first embodiment, and thus descriptions thereof are omitted.

The first image capturing portion 21 is communicably connected to therobot control device 130 via cables. The cable communication via thecables is performed, for example, by standards such as Ethernet(Registered trademark) or USB. The first image capturing portion 21 mayhave a configuration of being connected to the robot control device 130by wireless communication performed by communication standards such asWi-Fi (Registered trademark).

The second arm includes the second end effector E2 and the secondmanipulator M2. The second arm according to the present embodiment isthe same as that according to the first embodiment, and thusdescriptions thereof are omitted.

The second end effector E2 is communicably connected to the robotcontrol device 130 via the cables. Accordingly, the second end effectorE2 performs an operation based on a control signal acquired from therobot control device 130. The cable communication via the cables isperformed, for example, by standard such as Ethernet (Registeredtrademark) or USB. The second end effector E2 may have a configurationof being connected to the robot control device 130 by wirelesscommunication performed by communication standard such as Wi-Fi(Registered trademark).

The seven actuators (included in the joints) included in the secondmanipulator M2 are respectively communicably connected to the robotcontrol device 130 via cables. Accordingly, the aforementioned actuatorsoperates the second manipulator M2 based on a control signal acquiredfrom the robot control device 130. The cable communication via thecables is performed, for example, by standards such as Ethernet(Registered trademark) or USB. A portion or all of the seven actuatorsincluded in the second manipulator M2 may have a configuration of beingconnected to the robot control device 130 via wireless communicationperformed by communication standard such as Wi-Fi (Registeredtrademark).

The second image capturing portion 22 is the same as that according tothe first embodiment, and thus descriptions thereof are omitted.

The second image capturing portion 22 is communicably connected to therobot control device 130 via cables. The cable communication via thecables is performed, for example, by standards such as Ethernet(Registered trademark) or USB. The second image capturing portion 22 mayhave a configuration of being connected to the robot control device 130by wireless communication performed by communication standards such asWi-Fi (Registered trademark).

The robot 120 includes a third image capturing portion 23 and a fourthimage capturing portion 24. The third image capturing portion 23 and thefourth image capturing portion 24 according to the present embodimentare the same as those according to the first embodiment, and thusdescriptions thereof are omitted.

The third image capturing portion 23 is communicably connected to therobot control device 130 via the cables. The cable communication via thecables is performed, for example, by standards such as Ethernet(Registered trademark) or USB. The third image capturing portion 23 mayhave a configuration of being connected to the robot control device 130by wireless communication performed by communication standards such asWi-Fi (Registered trademark).

The fourth image capturing portion 24 is communicably connected to therobot control device 130 via the cables. The cable communication via thecables is performed, for example, by standards such as Ethernet(Registered trademark) or USB. The fourth image capturing portion 24 mayhave a configuration of being connected to the robot control device 130by wireless communication performed by communication standards such asWi-Fi (Registered trademark).

The respective functional portions that the robot 120 include, forexample, acquires control signals from the robot control device 130built in the robot 120. The aforementioned respective functionalportions perform operations based on the acquired control signals. Therobot 120 may have a configuration of being controlled the robot controldevice 130 installed on an external portion, instead of theconfiguration in which the robot control device 130 is built. In thiscase, the robot 120 and the robot control device 130 configure a robotsystem. The robot 120 may have a configuration of not including at leasta portion of the first image capturing portion 21, the second imagecapturing portion 22, the third image capturing portion 23, or thefourth image capturing portion 24.

The robot control device 130 operates the robot 120 by transmitting acontrol signal to the robot 120. Accordingly, the robot control device130 causes the robot 120 to perform a predetermined work.

Overview of Predetermined Work Performed by the Robot 120

Hereinafter, an overview of the predetermined work performed by therobot 120 is described.

In this example, the robot 120 grips an object disposed a work areawhich is an area in which a work can be performed by both of the firstarm and the second arm and performs a work of supplying (disposing) thegripped object to a material supplying area (not illustrated), as apredetermined work. The robot 120 may have a configuration of performingother works instead of this, as the predetermined work. The work areamay be an area in which a work can be performed by any one of the firstarm and the second arm.

In this example illustrated in FIG. 29, the work area is an areaincluding an upper surface of a workbench TB. The workbench TB is, forexample, a table. The workbench TB may be another object such as a flooror a shelf, instead of the table. Target objects O1 to ON which are Ntarget objects are disposed as the object that the robot 120 grips, onan upper surface of the workbench TB. N is an integer of 1 or greater.

Each of the target objects O1 to ON is an industrial component or anindustrial member such as a plate, a screw, or a bolt mounted in aproduct. In FIG. 29, in order to simplify drawings, the target objectsO1 to ON are illustrated as objects in a rectangular shape. The targetobjects O1 to ON may be other objects such as a commodity or an organisminstead of an industrial component or an industrial member. Therespective shapes of the target objects O1 to ON may be other shapesinstead of the rectangular shape. A portion or all of respective shapesof the target objects O1 to ON may be identical to each other or may bedifferent from each other.

Overview of Process Performed by the Robot Control Device 130

Hereinafter, an overview of a process performed by the robot controldevice 130 is described, in order to cause the robot 120 to perform apredetermined work.

The robot control device 130 causes the robot 120 to capture a rangeincluding a work area as a capture range. The robot control device 130acquires captured images that the robot 120 capture. The robot controldevice 130 detects a marker attached in the work area based on theacquired captured images. The robot control device 130 causes the robot120 to perform a predetermined work according to the detected marker.

In this example, the marker attached in the work area is attached toeach of the target objects O1 to ON disposed on the upper surface of theworkbench TB in the work area. Instead of this, a portion or all of themarker attached to the work area may have a configuration of beingattached to other objects of the target objects O1 to ON in the workarea, the upper surface of the workbench TB, or the like.

The target objects O1 to ON are attached respectively to markersdifferent from each other. These markers respectively illustratepositions of the target objects O1 to the ON in the robot coordinatesystem. For example, the marker Mk11 attached to the target object O1illustrates a position of the target object O1 in the robot coordinatesystem. A marker MkN attached to the target object ON illustrates aposition of the target object ON in the robot coordinate system. Aportion or all of the markers attached to the target objects O1 to ONare the same marker. Respective markers may have a configuration ofillustrating other information such as a configuration of illustratingan operation of the robot 120, instead of the configuration ofillustrating the positions of the target objects O1 to ON in the robotcoordinate system.

The robot control device 130 in this example causes the third imagecapturing portion 23 and the fourth image capturing portion 24 tostereoscopically capture the capture range. The robot control device 130acquires captured images that the third image capturing portion 23 andthe fourth image capturing portion 24 stereoscopically capture. Therobot control device 130 detects each of the markers Mk11 to MkN, whichare N markers based on the acquired captured images.

The robot control device 130 can detect markers (for example, each ofthe markers Mk11 to MkN) by plural marker detection methods and detectsmarkers by one marker detection method among the plural aforementionedmarker detection methods. The marker detection method is a detectionmethod of the marker.

Specifically, when each of the markers Mk11 to MkN is detected, therobot control device 130 detects each of the markers Mk11 to MkN by themarker detection method associated with each of the markers Mk11 to MkN.More specifically, the robot control device 130 detects each of themarkers Mk11 to MkN by the marker detection method associated with eachof the markers Mk11 to MkN, based on the corresponding informationincluding the information in which the information illustrating each ofthe markers Mk11 to MkN and the marker detection method are associatedwith each other. Accordingly, the robot control device 130 can make theimprovement in the detection accuracy of the marker and shortening ofthe detection time of the marker be compatible with each other.

According to the present embodiment, the process in which the robotcontrol device 130 detects each of the markers Mk11 to MkN by the markerdetection method associated with each of the markers Mk11 to MkN isdescribed. According to the present embodiment, a process in which therobot control device 130 generates the corresponding information and aprocess in which the robot control device 130 edits the correspondinginformation are described. According to the present embodiment, a methodin which a user or the robot control device 130 causes the markerdetection method to associated with each of the markers Mk11 to MkN isdescribed.

The robot control device 130 detects each of the markers Mk11 to MkN andcalculates positions of each of the detected markers Mk11 to MkNillustrate in the robot coordinate system. The robot control device 130causes the robot 120 to grip each of the target objects O1 to ON one byone, based on the calculated positions and supplies the target objectsO1 to ON to the material supplying area (not illustrated). In thisexample, the robot control device 130 causes the first arm to grip thetarget objects O1 to ON one by one and supplies the target objects O1 toON to the material supplying area (not illustrated). Instead of this,the robot control device 130 may have a configuration of causing thesecond arm to grip each of the target objects O1 to ON one by one or mayhave another configuration such as a configuration of causing both ofthe first arm and the second arm to grip each of the target objects O1to ON one by one.

Overview of Marker Detection Method Associated with Each of Markers

In this example, the marker detection method associated with each of themarkers Mk11 to MkN include three detection methods of a first detectionmethod, a second detection method, a third detection method.Hereinafter, these three detection methods are described. The markerdetection method may have a configuration of including another detectionmethod such as a method in which a portion or all of these threedetection methods are combined instead of a portion or all of the threedetection methods or may have a configuration of including a portion orall of these three detection methods are combined in addition to thesethree detection method.

First, processes that the robot control device 130 performs commonly toeach of the three detection method of the first to third detectionmethods are described. In this example, in these three detectionmethods, when the marker is detected from the captured image, the robotcontrol device 130 converts the captured image into a grayscale image(grayscale process). The robot control device 130 converts the capturedimage into a 256 gradation grayscale image, for example, in thegrayscale process of the captured image. The robot control device 130may have a configuration of converting the captured image into anothergradation grayscale image, instead of the configuration of convertingthe captured image into a 256 gradation grayscale image.

The robot control device 130 converts a grayscale image obtained byconverting the captured image in the grayscale process, into a binarizedimage (monochrome image) (binarization process). The binarizationprocess is a process for converting a color of a pixel having luminanceof a predetermined threshold value (binarized threshold value) orgreater on a grayscale image into white and converting a grayscale imageinto a binarized image by converting a pixel having luminance of lessthan the aforementioned threshold value into black. In this example, abinarized threshold value is luminance that is determined (selected) foreach marker detected by the robot control device 130 and is luminanceindicated by any one integer determined (selected) in the range from 0to 255. The robot control device 130 detects a marker from the binarizedimage obtained by converting the grayscale image by the binarizationprocess. That is, the binarized threshold value corresponds to thethreshold value for detecting a marker from the captured image. When themarker is detected from the binarized image, the robot control device130 detects the marker from the captured image by pattern matching basedon the model image of the marker. The model image of the marker is, forexample, a computer aided design (CAD) image. Since the marker detectionmethod by pattern matching uses a method known in the related art,descriptions thereof are omitted. The robot control device 130 may havea configuration of detecting a marker from the captured image by anothermethod. The model image of the marker may be another image of thecaptured image obtained by capturing a marker in a desired posture.

The robot control device 130 may have a configuration of converting thecaptured image into a binarized image without performing a grayscaleprocess, instead of a configuration of converting the grayscale imageinto a binarized image. In this case, the robot control device 130converts the captured image into a binarized image by converting a colorof a pixel in a predetermined hue on the captured image into white andconverting a pixel in a hue different from the aforementioned hue intoblack. The predetermined hue is an example of the binarized thresholdvalue different from the luminance and is indicated by a combination ofsix hexadecimal numbers indicating red green blue (RGB) colors, (forexample, FF0000 in a case of indicating red, 00FF00 in a case ofindicating green, and 0000FF in a case of indicating blue). In thepredetermined hue, an allowable range is set. For example, in a casewhere an allowable range of 00FF00 to 55FF55 is set for 00FF00indicating green, the robot control device 130 determines that all thecolors included in the range of 00FF00 to 55FF55 are green, which is thecolor indicated by 00FF00. In other words, such an allowable range is anerror range in which combination of six digits of hexadecimal numbersindicating the aforementioned hue is caused to be a central value. Therobot control device 130 detects the hue indicated by a combination ofsix digits of hexadecimal numbers included in the allowable range as thesame hue. The predetermined hue is an example of a threshold value fordetermining a color of an image.

In this manner, commonly to the respective three detection methods ofthe first to third detection methods, the robot control device 130converts the captured image into the binarized image and detects themarker from the converted binarized image based on the binarizedthreshold value.

Subsequently, differences of the respective first to third detectionmethods are described. In the respective first to third detectionmethods, methods for determining the binarized threshold values aredifferent.

According to the first detection method, the robot control device 130detects the marker by changing the binarized threshold value (that is,the threshold value for detecting the marker from the captured image) ina predetermined range. The predetermined range is a range correspondingto gradation of a grayscale image and is a range from 0 to 255 in thisexample. Therefore, the robot control device 130 changes the binarizedthreshold value 256 steps from 0 to 255 and detects a marker. Instead ofthis, the predetermined range may be a portion of the range in the rangeof 0 to 255.

Specifically, according to the first detection method, while changingthe binarized threshold value from 0 to 255, one by one, the robotcontrol device 130 determines (searches) the binarized threshold valueappropriate for detecting a target marker which is marker (in thisexample, a marker selected by the robot control device 130 from any oneof the markers Mk11 to MkN) of a target to be detected. The robotcontrol device 130 converts the grayscale image into a binarized imageusing the determined binarized threshold value and detects the targetmarker from the converted binarized image. In this example, thebinarized threshold value appropriate for detecting the target marker isa value (luminance) that realizes a binarization process for convertingthe captured image to a binarized image that can detect a target markerfrom the captured image including the target marker.

According to the second detection method, the robot control device 130detects the target marker using a value (luminance) obtained by maximumlikelihood estimation as a binarized threshold value (that is, thresholdvalue for detecting a marker from a captured image). In this example,the robot control device 130 employs an Otsu's method as a method forobtaining a binarized threshold value according to the second detectionmethod. Here, an overview of the Otsu's method is described. Accordingto the Otsu's method, it is assumed that a histogram indicating afrequency of the luminance expressed in each pixel of the captured imagehas two peaks. It is assumed that the luminance included in one peak ofthe two peaks is luminance of respective pixels included in a firstpartial area (for example, partial area including target marker) whichis a partial area in the captured image, and the luminance included inone remaining peak is luminance of each pixel included in a secondpartial area (for example, partial area that includes background withoutincluding target marker) which is different from the first partial areawhich is a partial area in the captured image.

According to the Otsu's method, under these assumptions, the robotcontrol device 130 determines luminance in which a ratio of dispersionof the luminance in the first partial area and dispersion of theluminance in the second partial area becomes minimum, that is, luminancein which a degree of separation between the first partial area and thesecond partial area becomes maximum, based on maximum likelihoodestimation as the binarized threshold value. The robot control device130 converts the grayscale image into the binarized image using thedetermined binarized threshold value and detects the target marker fromthe converted binarized image.

According to the third detection method, the robot control device 130detects a marker using a predetermined value (luminance) as thebinarized threshold value. Specifically, the robot control device 130converts the grayscale image into the binarized image using thepredetermined value as the binarized threshold value and detects thetarget marker to be detected from the converted binarized image. In thisexample, the predetermined value as the binarized threshold valueaccording to the third detection method is a value obtained bydetermining a binarized threshold value in advance, appropriate fordetecting a target marker, while changing the binarized threshold valuefrom 0 to 255 one by one. The aforementioned predetermined value may bea value determined in advance, by another method.

Here, accuracy in a case where the robot control device 130 detects thetarget marker from the captured image by the respective first to thirddetection methods is described. The detection accuracy which is accuracyin which the robot control device 130 detects the target marker from thecaptured image changes according to the luminance selected as thebinarized threshold value. The height of the detection accuracy in thisexample is indicated by height of probability in which the detection ofthe target marker from the aforementioned captured image succeeds.Specifically, for example, in a case where luminance appropriate fordetecting the target marker is not selected but luminance that is notappropriate for detecting the target marker is selected, as thebinarized threshold value, frequency at which the robot control device130 can detect the target marker from the captured image becomes low,that is, accuracy in which the robot control device 130 detects thetarget marker becomes low.

Since the first detection method searches the binarized threshold valueappropriate for detecting the target marker while changing the binarizedthreshold value from 0 to 255, the detection time that is time requiredfor detecting the target marker becomes longer than that of the secondand third detection methods, but detection accuracy of the target markeris higher than that of the second and third detection methods. Theaccuracy in which the robot control device 130 detects the target markerfrom the captured image by the third detection method tends to be lowerthan that of the first detection method, since there is a case where animage capturing condition of the captured image changes. However, theaccuracy is higher than that of the second detection method. The time inwhich the robot control device 130 detects the target marker from thecaptured image by the third detection method is shorter than that of thefirst and second detection methods, since the process for determiningthe binarized threshold value is not performed. The accuracy in whichthe robot control device 130 detects the target marker from the capturedimage by the second detection method is lower than that of the first andthird detection methods, but detection time of the target marker isshorter than that of the first detection method and longer than that ofthe third detection method.

Since the robot control device 130 detects the target marker whilecombining three detection methods of the first to third detectionmethods, the improvement in the detection accuracy of the marker andshortening of the detection time of the marker can be compatible witheach other. In a case where the robot control device 130 cannot detectthe target marker, for example, by the third detection method, it ispossible to execute the detection of the target marker by the seconddetection method. In a case where the marker of the target to bedetected cannot be detected by the second detection method, theaforementioned marker can be detected by the first detection method.

Details of Marker

Hereinafter, details of the marker that the robot control device 130detects from the captured image are described. The marker (that is, eachof the markers Mk11 to MkN) is the figure center marker. Here, thefigure center marker is described with reference to FIGS. 30 to 35.

The figure center of the figure center marker is the same as the figurecenter of the figure according to the first embodiment, and thusdescriptions thereof are omitted.

The figure center marker is a marker configured with a combination ofthree or more figures. The figure center of each of the aforementionedthree or more figures that configure the figure center marker belongs to(is included in) the predetermined range. For example, with respect tothe figure center marker configured with a combination of the figure A0,the figure B0, and the figure C0, the figure center A1 of the figure A0,the figure center B1 of the figure B0, and the figure center C1 of thefigure C0 belong to (are included in) the predetermined range. Forexample, the predetermined range is a circular range having a radius ofabout several pixels. However, the predetermined range may be a circularrange having a radius of less than one pixel, may be a circular rangehaving a radius of several pixels or more, or may be a range having another shape different from a circle such as a rectangle.

FIG. 30 is a diagram illustrating an example of the figure centermarker. The marker Mk11 illustrated in FIG. 30 is a figure center markerattached to the target object O1 illustrated in FIG. 29. As illustratedin FIG. 31, the three or more figures that configure the figure centermarker are detected as partial areas of only white or black, in thebinarized image. The marker Mk11 is configured with three figures of afigure M11 in which an outline is indicated by a black partial area in acircular shape, a figure M12 in which an outline is indicated by a whitepartial area in a ring shape, and a figure M13 is indicated by a blackpartial area in a ring shape. The marker Mk11 is formed such that therespective figure centers of the figure M11, the figure M12, and thefigure M13 belong to the predetermined range. Therefore, the marker Mk11configured with a combination of the figure M11, the figure M12, and thefigure M13 is a figure center marker. The figures M11 to M13 in themarker Mk11 are concentric circles, and the figure centers arepositioned in the center of the aforementioned concentric circles.

FIG. 31 is a diagram illustrating another example of the figure centermarker. The marker MkN illustrated in FIG. 31 is a figure center markerattached to the target object ON illustrated in FIG. 29. The marker MkNis configured with four figures of a figure MN1 in which an outline isindicated by a white partial area in a circular shape, a figure MN2 inwhich an outline is indicated by a black partial area in a ring shape, afigure MN3 in which an outline is indicated by a white partial area in aring shape, and a figure MN4 in which an outline is indicated by a blackpartial area in a ring shape. The marker MkN is formed such that therespective figure centers of the figure MN1, the figure MN2, the figureMN3, and the figure MN4 belong to the predetermined range. Therefore,the marker MkN configured with a combination of the figure MN1, thefigure MN2, the figure MN3, and the figure MN4 is a figure centermarker. The figures MN1 to MN4 in the marker MkN are concentric circles,and the figure centers are positioned in the center of theaforementioned concentric circles.

In the markers Mk11 and MkN illustrated in FIGS. 30 and 31, acombination of three or more figures that configure the figure centermarker configure the concentric circles. However, in the figure centermarker, a combination of three or more figures that configure the figurecenter marker configures the concentric circle, but does not limitedthereto. The markers may be a case where a combination of three or morefigures that configures figure center marker illustrated in FIGS. 9 to11 does not configure a concentric circle, in the same manner as in thefirst embodiment.

In this example, a position of the object (for example, each of thetarget objects O1 to ON illustrated in FIG. 29) to which these figurecenter marker are attached is indicated by the position of the figurecenter of the aforementioned figure center marker. The position of thefigure center of the aforementioned figure center marker is indicated bya vector (average of three or more vectors) obtained by dividing the sumof the vectors illustrating the positions of the three or more figurecenters included in the predetermined range by the number of figurecenters. Instead of this, the position of the object to which theaforementioned figure center marker is attached may have a configurationof being indicated by another position associated with the position ofthe figure center of the aforementioned figure center marker. The robotcontrol device 130 according to the present embodiment detects each ofthe markers Mk11 to MkN that are figure center markers illustrated inFIGS. 9 to 11, 30, and 31 from the captured image and calculates aposition of a figure center of each of the detected markers Mk11 to MkNas a position of each of the target objects O1 to ON.

Instead of these figure center markers, the marker that the robotcontrol device 130 detects may be another marker such as a color marker,a barcode, or a QR code (Registered trademark).

Relationship with Binarized Threshold Value and Accuracy in which theRobot Control Device 130 Detects Marker

Hereinafter, a relationship with the binarized threshold value andaccuracy in which the robot control device 130 detects a target markeris described with reference to FIGS. 32 to 36.

FIG. 32 is a diagram illustrating an example of the captured imageincluding 64 figure center markers. 64 figure center markers Mks ofmarkers Mks1 to Mks64 are included in a captured image G1 illustrated inFIG. 32. In a case where the robot control device 130 converts thecaptured image G1 into the binarized image based on the binarizedthreshold value that is not appropriate for detecting the target marker,the aforementioned binarized image becomes as a binarized image G2illustrated in FIG. 33.

FIG. 33 is a diagram illustrating an example of a binarized image in acase where the robot control device 130 binarizes the captured image G1illustrated in FIG. 32 based on the binarized threshold value that isnot appropriate for detecting the target marker. As illustrated in FIG.33, at least a portion of the 64 figure center markers Mks included inthe captured image G1 blackens out in the binarized image G2 in whichthe robot control device 130 binarizes the captured image G1 illustratedin FIG. 32 based on the binarized threshold value that is notappropriate for detecting the target marker.

FIG. 34 is a diagram of exemplifying each of the three or more figuresthat configures a portion of the figure center markers Mks that isdetected by the robot control device 130 from the binarized image G2illustrated in FIG. 33. In FIG. 34, the aforementioned figures arerespectively differentiated according to the difference of hatching. Asillustrated in FIG. 34, a portion of the three or more figures thatconfigure each of the figure center markers Mks detected by the robotcontrol device 130 from the binarized image G2 blackens out, anotherportion thereof is detected as figures in shapes different from theoriginal, a portion of the three or more figures that configures each ofthe figure center markers Mks is detected as one figure in still anotherportion, and the rest portion is normally detected. That is, the robotcontrol device 130 cannot detect a desired figure center marker to bedetected among the markers Mks1 to Mks64 from the binarized image G2obtained by binarizing the captured image G1 based on the binarizedthreshold value that is not appropriate for detecting the target marker,in some cases. For example, in a case where the desired figure centermarkers to be detected are all figure center markers of the markers Mks1to Mks64, the robot control device 130 cannot detect the desired figurecenter markers in the example illustrated in FIGS. 33 and 34.

Meanwhile, FIG. 35 is a diagram illustrating an example of a binarizedimage in a case where the robot control device 130 binarizes thecaptured image G1 illustrated in FIG. 32 based on the binarizedthreshold value appropriate for detecting the target marker. Asillustrated in FIG. 35, in a binarized image G3 obtained by binarizingthe captured image G1 illustrated in FIG. 32 by the robot control device130 based on the binarized threshold value appropriate for detecting thetarget marker, all of the 64 figure center markers included in thecaptured image G1 do not blacken out.

FIG. 36 is a diagram of exemplifying each of the three or more figuresthat configure the figure center markers Mks detected by the robotcontrol device 130 from the binarized image G2 illustrated in FIG. 35.In FIG. 36, the aforementioned figures are respectively differentiatedaccording to the difference of hatching. As illustrated in FIG. 36, allof the three or more figures that configure each of the figure centermarkers Mks detected by the robot control device 130 from the binarizedimage G3 are normally detected. That is, the robot control device 130can detect the desired figure center marker to be detected, among themarker Mks1 to the marker Mks64, from the binarized image G3 obtained bybinarizing the captured image G1 based on a binarized threshold valueappropriate for detecting the marker. For example, in a case where thedesired figure center markers to be detected are the figure centermarkers of all of the markers Mks1 to Mks64, in the example illustratedin FIGS. 35 and 36, the robot control device 130 can detect the desiredfigure center markers.

In this manner, in a case where the luminance selected as the binarizedthreshold value is luminance that is not appropriate for detecting thetarget marker, the robot control device 130 cannot detect the targetmarker in some cases. However, in a case where the luminance selected asthe binarized threshold value is luminance appropriate for detecting thetarget marker, the robot control device 130 can detect the targetmarker. Therefore, selecting luminance appropriate for detecting thetarget marker by the robot control device 130 as the binarized thresholdvalue is important for the robot control device 130 to cause the robot120 to perform a work with high accuracy.

Hardware Configuration of Robot Control Device 130

Hereinafter, hardware configuration of the robot control device 130 isdescribed with reference to FIG. 37. FIG. 37 is a diagram illustratingan example of the hardware configuration of the robot control device130. For example, the robot control device 130 includes the centralprocessing unit (CPU) 31, the storage portion 32, the input receivingportion 33, the communication portion 34, and the display portion 35.The robot control device 130 performs a communication with the robot 120via the communication portion 34. These components are communicablyconnected to each other via the buses Bus.

The CPU 31, the storage portion 32, the input receiving portion 33, thecommunication portion 34, and the display portion 35 are the same asthose according to the first embodiment, and thus descriptions thereofare omitted.

Instead of being built in the robot control device 130, the storageportion 32 may be an external storage device connected by a digitalinput-output port such as USB. The storage portion 32 stores variousitems of information, images, or programs that the robot control device130 processes or information illustrating a position of the materialsupplying area (not illustrated).

Functional Configuration of Robot Control Device 130

Hereinafter, the functional configuration of the robot control device130 is described with reference to FIG. 38. FIG. 38 is a diagramillustrating an example of the functional configuration of the robotcontrol device 130. The robot control device 130 includes the storageportion 32 and a control portion 136.

The control portion 136 controls the entire robot control device 130.The control portion 136 includes the image capturing control portion 40,the image acquisition portion 42, an image process portion 144, and therobot control portion 46. These functional portions included in thecontrol portion 136 are realized, for example, by the CPU 31 executingvarious programs stored in the storage portion 32. A portion or all ofthese functional portions may be hardware functional portions such as alarge scale integration (LSI) or an application specific integratedcircuit (ASIC).

The image capturing control portion 40 and the image acquisition portion42 are the same as those according to the first embodiment, and thusdescriptions thereof are omitted.

The image process portion 144 performs various image processes on thecaptured image acquired by the image acquisition portion 42. The imageprocess portion 144 includes a marker information reading portion 149, acorresponding information reading portion 150, a detection methodselecting portion 151, a marker detecting process portion 152, a sampleimage reading portion 153, a corresponding information generatingportion 154, a display control portion 155, and a correspondinginformation editing portion 156.

The marker information reading portion 149 reads marker informationstored in the storage portion 32 in advance. The marker information isinformation including information illustrating each of the one or moremarkers detected when the robot control device 130 causes the robot 120to perform a predetermined work. In this example, the marker informationincludes information in which the marker ID illustrating each of theaforementioned one or more markers and the model images of the markerare associated with each other. The marker information may have aconfiguration including other information associated with the marker ID.

The corresponding information reading portion 150 reads correspondinginformation stored in the storage portion 32 in advance, from thestorage portion 32. In this example, the corresponding information isinformation including information in which the marker ID illustratingeach of the plural markers and information illustrating the markerdetection method appropriate for detecting the marker illustrated by themarker ID are associated with each other. In this example, thecorresponding information is stored in the table illustrated in FIG. 39and stored in the storage portion 32. FIG. 39 is a diagram illustratingan example of the table in which the corresponding information isstored.

In the table illustrated in FIG. 39, the marker ID and the markerdetection method are stored in association with each other. In theaforementioned table, the marker ID, detectable minimum threshold valuesthat are minimum threshold values among the binarized threshold valuesrealizing conversion of the aforementioned captured image to thebinarized image in which the marker illustrated by the marker ID can bedetected from the captured image, and detectable ranges indicated by thedetectable maximum threshold values which are maximum threshold valuesamong the aforementioned binarized threshold values are stored in anassociated manner. That is, the detectable range is a range from adetectable minimum threshold value to a detectable maximum thresholdvalue.

With respect to the marker detection method, in this example, “−2”illustrates a first detection method, “−1” illustrates a seconddetection method, and another positive integer illustrates a thirddetection method. The aforementioned another positive integerillustrates the predetermined value in the third detection method, thatis, a binarized threshold value (luminance) in the third detectionmethod. In this example, the aforementioned binarized threshold value isan average value of the detectable minimum threshold value and thedetectable maximum threshold value in the detectable range associatedwith the aforementioned binarized threshold value. The aforementionedbinarized threshold value may be, for example, values in anotherdetectable range such as a detectable minimum threshold value, adetectable maximum threshold value, or a value different from theaverage value of the detectable range. In this example, null informationis stored in the detectable range (that is, the detectable minimumthreshold value and the detectable maximum threshold value) associatedwith each of the first and second detection methods.

For example, in FIG. 39, the second detection method is associated witha marker having the marker ID of “1” as the marker detection methodappropriate for detecting the aforementioned marker. The third detectionmethod is associated with a marker having the marker ID of “2” as themarker detection method appropriate for detecting the aforementionedmarker, and the binarized threshold value used for detecting theaforementioned marker is 90. The first detection method is associatedwith a marker having the marker ID of “4” as the marker detection methodappropriate for detecting the aforementioned marker.

The detection method selecting portion 151 selects a marker detectionmethod associated with the marker ID illustrating a target marker thatthe marker detecting process portion 152 selects based on the markerinformation that the marker information reading portion 149 reads fromthe storage portion 32, based on the corresponding information that thecorresponding information reading portion 150 reads from the storageportion 32.

The marker detecting process portion 152 selects the marker IDillustrating the target marker one by one, based on the markerinformation that the marker information reading portion 149 reads fromthe storage portion 32. The marker detecting process portion 152 detectsthe target marker from the captured image that the image acquisitionportion 42 acquires, based on the marker detection method that thedetection method selecting portion 151 selects.

The sample image reading portion 153 reads one or more sample imagesused when the corresponding information generating portion 154 generatesthe corresponding information, from the storage portion 32. One or moremarkers illustrated by the marker ID included in the marker informationthat the marker information reading portion 149 reads from the storageportion 32 are included in the sample image. Each of one or more sampleimages has different image capturing conditions in which the images arecaptured. The image capturing condition is, for example, a conditiondetermined according to difference in brightness of lighting on aportion or all of the one or more markers included in the aforementionedsample image when the sample image is captured, difference in disposingpositions of a portion or all of the one or more markers included in thesample image, difference in day and time or season when the sample imageis captured, or difference in a location at which the sample image iscaptured.

In this example, a case where the aforementioned one or more sampleimages are captured in advance and stored in the storage portion 32 isdescribed. Instead of this, the aforementioned one or more sample imageshave a configuration of being captured by the third image capturingportion 23 and the fourth image capturing portion 24. In this case, theimage process portion 144 may not include the sample image readingportion 153. Instead of this, the image acquisition portion 42 acquiresthe captured image to become the sample image, from the third imagecapturing portion 23 and the fourth image capturing portion 24.

The corresponding information generating portion 154 generates thecorresponding information based on the one or more sample images thatthe sample image reading portion 153 reads from the storage portion 32.

The display control portion 155 causes the display portion 35 to displayan edit screen including the graphical user interface (GUI) for editingthe corresponding information stored in the storage portion 32 or thelike.

The corresponding information editing portion 156 edits thecorresponding information stored in the storage portion 32, based on anoperation from the user that the display control portion 155 receivesvia the edit screen displayed on the display portion 35.

The robot control portion 46 causes the robot 120 to perform apredetermined work based on the position of the figure center of thetarget marker that the marker detecting process portion 152 detects.

With Respect to Flow of Process that Control Portion 136 Causes Robot120 to Perform Predetermined Work

Hereinafter, a process that the control portion 136 causes the robot 120to perform a predetermined work is described with reference to FIG. 40.FIG. 40 is a flow chart illustrating an example of a flow of a processin which the control portion 136 causes the robot 120 to perform apredetermined work.

The image capturing control portion 40 causes the third image capturingportion 23 and the fourth image capturing portion 24 to stereoscopicallycapture the capture range including the work area illustrated in FIG. 29(Step S50). Subsequently, the image acquisition portion 42 acquires thecaptured image that the third image capturing portion 23 and the fourthimage capturing portion 24 stereoscopically capture in Step S50 from thethird image capturing portion 23 and the fourth image capturing portion24 (Step S60).

Subsequently, the marker detecting process portion 152 executes themarker detection process and detects each of the markers Mk11 to MkNincluded in the captured image based on the captured image that theimage acquisition portion 42 acquires in Step S60 (Step S70).Subsequently, the robot control portion 46 calculates respectivepositions of the figure centers of the markers Mk11 to MkN that themarker detecting process portion 152 detects in Step S70 as respectivepositions of the target objects O1 to ON illustrated in FIG. 29 (StepS80).

Subsequently, the robot control portion 46 causes the first arm to gripthe target objects O1 to ON one by one, based on the respectivepositions of the target objects O1 to ON calculated in Step S80 andsupplies the material supplying area (not illustrated) (Step S90). Therobot control portion 46 reads the information illustrating the positionof the material supplying area from the storage portion 32 in advance.The robot control portion 46 causes the first arm to supply the targetobjects O1 to ON to the material supplying area and ends the process.

With Respect to Flow of Marker Detection Process

Hereinafter, with reference to FIG. 41, the marker detection process inStep S70 illustrated in FIG. 40 is described. FIG. 41 is a flow chartillustrating an example of the flow of the marker detection process inStep S70 illustrated in FIG. 40.

The marker detecting process portion 152 causes the marker informationreading portion 149 to read the marker information from the storageportion 32 (Step S1100). Subsequently, the marker detecting processportion 152 causes the corresponding information reading portion 150 toread the corresponding information from the storage portion 32 (StepS1110). Subsequently, the marker detecting process portion 152 selectsthe marker ID (in this example, the markers ID that respectivelyillustrate the markers Mk11 to MkN) included the marker information thatthe marker information reading portion 149 read from the storage portion32 in Step S1100 one by one and repeatedly performs processes from StepsS1130 to S1210 for each target marker using the markers illustrated bythe selected markers ID as the target markers (Step S1120).

Subsequently, the detection method selecting portion 151 detects themarker detection method associated with the target marker that themarker detecting process portion 152 selects in Step S1120 from thecorresponding information that the corresponding information readingportion 150 reads from the storage portion 32 in Step S1110 and selectsthe detected marker detection method as the marker detection method ofthe target marker.

Subsequently, the marker detecting process portion 152 determineswhether the marker detection method that the detection method selectingportion 151 selects in Step S1130 is the first detection method or not(Step S1140). In a case where it is determined that the marker detectionmethod that the detection method selecting portion 151 selects is thefirst detection method (Step S1140-Yes), the marker detecting processportion 152 executes the first detect process based on the firstdetection method and detects the target marker (Step S1150).

Subsequently, the marker detecting process portion 152 determineswhether the detection of the target marker in Step S1150 succeeds or not(Step S1160). In a case where it is determined that the detection of thetarget marker succeeds (Step S1160-Yes), the marker detecting processportion 152 proceeds to Step S1120 and selects the marker that the nextmarker ID illustrates as the target marker. In a case where it isdetermined that detection of the target marker succeeds and a case wherean unselected marker ID in Step S1120 does not exist, the markerdetecting process portion 152 ends the process. Meanwhile, in a casewhere it is determined that the detection of the target marker does notsucceed (failed) (Step S1160-No), the marker detecting process portion152 executes an error process (Step S1210) and ends a process.Specifically, in the error process, the marker detecting process portion152, for example, causes the display control portion 155 to display theinformation illustrating the failure of the detection of the targetmarker on the display portion 35. Instead of this, the error process maybe another process that informs the user of the failure in the detectionof the target marker.

Meanwhile, in Step S1140, in a case where it is determined that themarker detection method that the detection method selecting portion 151selects is not the first detection method (Step S1140-No), the markerdetecting process portion 152 determines whether the marker detectionmethod that the detection method selecting portion 151 selects in StepS1130 is the second detection method or not (Step S1170). In a casewhere it is determined that the marker detection method that thedetection method selecting portion 151 selects is the second detectionmethod (Step S1170-Yes), the marker detecting process portion 152executes the second detect process based on the second detection methodand detects the target marker (Step S1180). In the second detect processbased on the second detection method, in this example, the binarizedthreshold value is determined by the Otsu's method described above andthe captured image is converted into the binarized image based on thedetermined binarized threshold value. In the aforementioned seconddetect process, the target marker is detected from the convertedaforementioned binarized image. Since the Otsu's method is a methodwell-known in the art, details of the second detect process are omittedherein. The method for detecting the target marker from the binarizedimage may be a method well-known in the art or may be a method newlydeveloped from this, and details thereof are omitted.

Subsequently, the marker detecting process portion 152 determineswhether the detection of the target marker in Step S1180 succeeds or not(Step S1190). In a case where it is determined that the detection of thetarget marker succeeds (Step S1190-Yes), the marker detecting processportion 152 proceeds to Step S1120 and selects the marker that the nextmarker ID illustrates as the target marker. In a case where it isdetermined that the detection of the target marker succeeds, and a casewhere an unselected marker ID does not exist in Step S1120, the markerdetecting process portion 152 ends the process. Meanwhile, in a casewhere it is determined that the detection of the target marker does notsucceed (Step S1190-No), the marker detecting process portion 152proceeds to Step S1150, executes the first detect process based on thefirst detection method, and detects the target marker.

Meanwhile, in Step S1170, in a case where it is determined that themarker detection method that the detection method selecting portion 151selects is not the second detection method (Step S1170-No), the markerdetecting process portion 152 executes the third detect process based onthe third detection method and detects the target marker (Step S1200).The marker detecting process portion 152 proceeds to Step S1190 anddetermines whether the detection of the target marker in Step S1200succeeds or not. In the third detect process based on the thirddetection method, the marker detecting process portion 152 detects thebinarized threshold value associated with the target marker based on thecorresponding information that the marker information reading portion149 reads from the storage portion 32 in Step S1110 and determines thedetected binarized threshold value as the binarized threshold valuedetermined in advance. The marker detecting process portion 152 convertsthe captured image into the binarized image based on the determinedbinarized threshold value. In the aforementioned third detect process,the target marker is detected from the converted aforementionedbinarized image. The method for detecting the target marker from thebinarized image may be the method well-known in the art or may be amethod newly developed from this, and details thereof are omitted.

In this manner, in a case where the target marker can be detected by thesecond detection method or the third detection method, even if thetarget marker is not detected by the first detection method in which thedetection time of the target marker is longer than the second and thirddetection methods, the robot control device 130 can detect the targetmarker by the second detection method or the third detection method inwhich the detection time is shorter than that in the first detectionmethod. In a case where the target marker can be detected by the seconddetection method or the third detection method, that is, a case wherethe second detection method or the third detection method is associatedwith the target marker.

Even if the target marker is not detected by the first and seconddetection methods in which the detection time of the target marker islonger than the third detection method, in a case where the targetmarker can be detected by the third detection method, the robot controldevice 130 can suppress the decrease of the detection accuracy of thetarget marker and detects the target marker by the third detectionmethod of which detection time is shorter than that of the first andsecond detection methods. As a result, the robot control device 130 canmake the improvement in the detection accuracy of the marker and theshortening of the detection time of the marker be compatible with eachother.

With Respect to Flow of First Detect Process

Hereinafter, a first detect process in Step S1150 illustrated in FIG. 41is described with reference to FIG. 42. FIG. 42 is a flow chartillustrating an example of the flow of the first detect process in StepS1150 illustrated in FIG. 41.

The marker detecting process portion 152 sets the one or more searchranges on the captured image that the image acquisition portion 42acquires in Step S50 illustrated in FIG. 40 and repeatedly executesprocesses from Steps S1310 to S1360 for each set search range (StepS1300). In this example, there is only one search range. That is, thesearch range is the entire captured image.

After the search range is selected in Step S1300, the marker detectingprocess portion 152 selects luminance (256 integer values including 0)from 0 to 255 in an order from 0 one by one, as the binarized thresholdvalue and repeatedly performs a process from Steps S1320 to S1360 foreach selected binarized threshold value (Step S1310).

After the binarized threshold value is selected in Step S1310, themarker detecting process portion 152 converts the captured image thatthe image acquisition portion 42 acquires in Step S50 illustrated inFIG. 40 into the grayscale image (Step S1320). Subsequently, the markerdetecting process portion 152 converts the grayscale image obtained byconverting the captured image by the grayscale process in Step S1320into the binarized image based on the binarized threshold value selectedin Step S1310 (Step S1330).

Subsequently, the marker detecting process portion 152 detects one ormore partial areas from the binarized image obtained by converting thegrayscale image by the binarization process in Step S1330 (Step S1340).The aforementioned partial area is a white partial area which is an areaconfigured only with one or more white pixels in the binarized image anda black partial area configured only with one or more black pixels inthe aforementioned binarized image. In a case where pixels having thesame color as the aforementioned pixel exist around eight pixels withthe pixel selected from the binarized image as a center, the markerdetecting process portion 152 regards these pixels as pixels included inone connected partial area. After one or more partial areas are detectedfrom the binarized image, the marker detecting process portion 152performs labeling for differentiating each of the detectedaforementioned partial area.

Subsequently, the marker detecting process portion 152 executesdetection of the target marker based on the one or more partial areasdetected in Step S1340 (Step S1350). Specifically, the marker detectingprocess portion 152 calculates the positions of the figure centers ofthe respective figures in a case where the partial areas labeled in StepS1340 are respectively set to be the figures. The marker detectingprocess portion 152 detects a combination of the figure (that is, thepartial area) in which three or more figure centers belong to thepredetermined range as the figure center marker, based on the calculatedpositions of the figure centers. The marker detecting process portion152 detects the target marker by pattern matching or the like, from thedetected one or more figure center markers. In a case where the targetmarker is detected by pattern matching from the one or more figurecenter markers, the marker detecting process portion 152 reads the modelimage of the target marker stored in the storage portion 32 in advanceand detects the target marker from the one or more figure center markersbased on the read aforementioned model image.

Subsequently, the marker detecting process portion 152 determineswhether detection of the target marker in the process of Step S1350succeeds or not (Step S1360). In a case where it is determined that thedetection of the target marker succeeds (Step S1360-Yes), the markerdetecting process portion 152 ends the process. Meanwhile, in a casewhere it is determined that the detection of the target marker does notsucceed (Step S1360-No), the marker detecting process portion 152proceeds to Step S1310 and selects the next binarized threshold value.After the process from Steps S1320 to S1360 is executed on all thebinarized threshold value that can be selected in Step S1310, the markerdetecting process portion 152 proceeds to Step S1300 and selects thenext search range. In this example, since there is only one searchrange, the marker detecting process portion 152 executes the processesfrom Steps S1320 to S1360 in all the binarized threshold values that canbe selected in Step S1310 and ends the process.

In this manner, the robot control device 130 detects each of theaforementioned plural markers by the marker detection method associatedwith each of the plural markers (in this example, the markers Mk11 toMkN). Accordingly, the robot control device 130 can make the improvementin the detection accuracy of the marker and the shortening of thedetection time of the marker be compatible with each other.

With Respect to Flow of Process for Generating Corresponding Information

Hereinafter, the process in which the robot control device 130 generatesthe corresponding information with reference to FIG. 43 is described.FIG. 43 is a flow chart illustrating an example of a flow of a processin which the robot control device 130 generates the correspondinginformation.

The corresponding information generating portion 154 generates a tablethat stores the corresponding information in a storage area of thestorage portion 32 (Step S1400). Subsequently, the correspondinginformation generating portion 154 initializes the table generated inthe storage area of the storage portion 32 in Step S1400 (Step S1410).For example, the corresponding information generating portion 154 storesthe null information in each field for storing the information in theaforementioned table, as initialization of the aforementioned table.Instead of this, the corresponding information generating portion 154may have a configuration of initializing the aforementioned table byanother method.

Subsequently, the corresponding information generating portion 154 readsthe marker information from the storage portion 32 to the markerinformation reading portion 149 (Step S1420). Subsequently, thecorresponding information generating portion 154 causes the sample imagereading portion 153 to read the sample image from the storage portion 32(Step S1425). In this example, a case where there is only one sampleimage that the sample image reading portion 153 reads is described.Instead of a configuration of causing the sample image reading portion153 to read the sample image from the storage portion 32, thecorresponding information generating portion 154 may have aconfiguration in which the image capturing control portion 40 causes thethird image capturing portion 23 and the fourth image capturing portion24 to capture the captured image to become the sample image. In thiscase, the corresponding information generating portion 154 causes theimage acquisition portion 42 to acquire the captured image captured bythe third image capturing portion 23 and the fourth image capturingportion 24 as the sample image.

Subsequently, the corresponding information generating portion 154selects the marker ID included in the marker information that the markerinformation reading portion 149 reads in Step S1420 one by one andrepeatedly performs processes from Steps S1440 to S1500 for each targetmarker using the marker illustrated by the selected marker ID as thetarget marker (Step S1430).

After the target marker is selected in Step S1430, the correspondinginformation generating portion 154 sets one or more search ranges withrespect to the sample image that the sample image reading portion 153reads in Step S1425 and repeatedly executes the processes from StepsS1450 to S1500 for each of the set search ranges (Step S1440). In thisexample, there is only one search range. That is, the search range isthe entire captured image.

The corresponding information generating portion 154 executes the seconddetect process based on the second detection method and detects thetarget marker from the sample image that the sample image readingportion 153 reads from the storage portion 32 in Step S1425 (StepS1450). Subsequently, the corresponding information generating portion154 determines whether the detection of the target marker in Step S1450succeeds or not (Step S1460). In a case where it is determined that thedetection of the target marker succeeds (Step S1460-Yes), thecorresponding information generating portion 154 proceeds to Step S1495generates the corresponding information in which information (in thisexample, “−1” described above) illustrating the second detection method,the marker ID illustrating the target marker, and the null informationas the information illustrating the detectable range are associated witheach other (Step S1495). Meanwhile, in a case where it is determinedthat the detection of the target marker does not succeed (StepS1460-No), the corresponding information generating portion 154 proceedsto Step S1440 and selects the next search range. In this example, sincethere is only one search range, in a case where it is determined thatthe detection of the target marker does not succeed, the correspondinginformation generating portion 154 proceeds to Step S1470 and repeatedlyexecutes the processes from Steps S1480 to S1490 for each search rangeset in the sample image in Step S1440 (Step S1470).

After the search range is selected in Step S1470, the correspondinginformation generating portion 154 derives the detectable range of thetarget marker (Step S1480). Here, the process of Step S1480 isdescribed. The corresponding information generating portion 154 executesprocesses from Steps S1300 to S1350, in a case where in the flow chartillustrated in FIG. 42 on the sample image that the sample image readingportion 153 reads from the storage portion 32 in Step S1425, Step S1360is omitted. Accordingly, the corresponding information generatingportion 154 derives the detectable minimum threshold value and thedetectable maximum threshold value in the search range in which thedetection of the target marker succeeds. In this example, since there isonly one search range, the detection of the target marker is executed inthe aforementioned process from the entire aforementioned sample imageand derives the detectable minimum threshold value and the detectablemaximum threshold value.

In a case where the detectable minimum threshold value and thedetectable maximum threshold value cannot be derived, that is, in a casewhere the target marker cannot be detected in the aforementioned processat all, the corresponding information generating portion 154 sets thedetectable minimum threshold value and the detectable maximum thresholdvalue as null information.

After the detectable range is derived in Step S1480, the correspondinginformation generating portion 154 proceeds to Step S1470 and selectsthe next search range. In this example, since there is only one searchrange, the corresponding information generating portion 154 derives thedetectable range in Step S1480, proceeds to Step S1495, and generatesthe corresponding information in which the detectable minimum thresholdvalue and the detectable maximum threshold value derived in Step S1480,the marker ID illustrating the target marker, the average value betweenthe detectable minimum threshold value and the detectable maximumthreshold value as the information illustrating the third detectionmethod are associated with each other. At this point, in a case wherethe detectable minimum threshold value and the detectable maximumthreshold value are null information, the corresponding informationgenerating portion 154 generates the corresponding information in whichthe detectable minimum threshold value and the detectable maximumthreshold value which are null information, the marker ID illustratingthe target marker, and the information (in this example, “−2”)illustrating the first detection method are associated with each other,instead of generating the aforementioned corresponding information.

Subsequently, the corresponding information generating portion 154stores the corresponding information generated in Step S1495 in theinitialized table in Step S1410 (Step S1500). The correspondinginformation generating portion 154 proceeds to Step S1430 and selectsthe next marker ID. In a case where an unselected marker ID does notexist in Step S1430, the corresponding information generating portion154 ends the process.

In this manner, the robot control device 130 generates the correspondinginformation based on the sample image and the marker information.Accordingly, the robot control device 130 can detect the target markerusing the marker detection method associated with the target markerbased on the generated corresponding information. As a result, the robotcontrol device 130 causes the improvement in the detection accuracy ofthe marker and the shortening of the detection time of the marker.

With Respect to Flow of Process for Editing Corresponding Information

Hereinafter, the process in which the robot control device 130 edits thecorresponding information based on an operation received from the useris described with reference to FIG. 44. FIG. 44 is a flow chartillustrating an example of a flow of the process in which the robotcontrol device 130 edits the corresponding information based on theoperation received from the user. Hereinafter, a process after thedisplay control portion 155 receives an operation for displaying theedit screen on the display portion 35 via the input receiving portion 33is described.

The corresponding information editing portion 156 reads thecorresponding information from the storage portion 32 to thecorresponding information reading portion 150 (Step S510). Subsequently,the display control portion 155 causes the display portion 35 to displaythe edit screen (Step S520). Subsequently, the corresponding informationediting portion 156 stands by until an editing operation for editing thecorresponding information from the user via the edit screen (Step S530).After the editing operation for editing the corresponding information isreceived from the user via the edit screen (Step S530-Yes), thecorresponding information editing portion 156 edits the correspondinginformation based on the editing operation received from the user (StepS540). For example, the corresponding information editing portion 156changes the marker detection method associated with the marker IDselected by the user to another marker detection method based on theediting operation received from the user. For example, the correspondinginformation editing portion 156 changes a portion or all of thebinarized threshold value, the detectable minimum threshold value, andthe detectable maximum threshold value associated with the marker IDselected by the user into other values, based on the editing operationreceived from the user.

Subsequently, the corresponding information editing portion 156determines whether an operation for ending the editing of thecorresponding information is received from the user via the edit screenor not (Step S550). In a case where it is determined that an operationfor ending the editing of the corresponding information is not received(Step S550-No), the corresponding information editing portion 156proceeds to Step S530 and stands by until an editing operation forediting the corresponding information is further received from the uservia the edit screen. Meanwhile, in a case where it is determined that anoperation for ending the editing of the corresponding information isreceived (Step S550-Yes), the corresponding information editing portion156 ends the process.

In this manner, the robot control device 130 edits the correspondinginformation based on the operation received from the user. Accordingly,the robot control device 130 can provide the user with the function forediting the corresponding information to corresponding informationdesired by the user. Here, the determining method by the user of themarker detection method in a case where the user changes the markerdetection method associated with the marker ID in the edition of thecorresponding information performed by the user is described withreference to FIG. 45.

FIG. 45 is a diagram illustrating an example of the flow of thedetermining method by the user of the marker detection method.

The user selects the markers ID included in the marker information oneby one and performs processes from Steps S610 to S650 for each targetmarker using the marker illustrated by the selected marker ID as thetarget marker (Step S600).

The user determines whether the image capturing condition of the capturerange that is captured by the third image capturing portion 23 and thefourth image capturing portion 24 is stable or not (Step S610). Thestability of the image capturing condition is, for example, indicated bywhether the image capturing condition is changed within a predeterminedtime. The user determines that the image capturing condition is notstable in a case where the image capturing condition is changed within apredetermined time. Meanwhile, in a case where the image capturingcondition is not changed within the predetermined time, user determinesthat the image capturing condition is stable. The predetermined time is,for example, 30 minutes. Instead of 30 minutes, the predetermined timemay be another time. The stability of the image capturing condition mayhave a configuration of being indicated by other conditions.

In a case where it is determined that the image capturing condition ofthe capture range is not stable (Step S610-No), the user selects thefirst detection method as the marker detection method of the targetmarker (Step S620). Meanwhile, in a case where it is determined that theimage capturing condition of the capture range is stable (StepS610-Yes), the user determines whether the target marker can be detectedby the second detection method or not (Step S630). In a case where themarker detection method associated with the target marker from thecorresponding information is the second detection method, the userdetermines that the target marker can be detected by the seconddetection method based on the marker ID illustrating the target marker.Meanwhile, based on the marker ID illustrating the target marker, in acase where the marker detection method associated with the target markerfrom the corresponding information is not the second detection method,the user determines that the target marker cannot be detected by thesecond detection method.

In a case where it is determined that the target marker can be detectedby the second detection method (Step S630-Yes), the user selects thesecond detection method as the marker detection method of the targetmarker. Meanwhile, in a case where it is determined that the targetmarker cannot be detected by the second detection method (Step S630-No),the user selects the third detection method as the marker detectionmethod of the target marker.

In this manner, the user determines the marker detection method for eachof the plural markers. Accordingly, the user can associate the markerdetection method appropriate for detecting the aforementioned markerwith the aforementioned marker, for each of the plural markers. As aresult, the robot control device 130 more reliably make the improvementin the detection accuracy of the marker and the shortening of thedetection time of the marker be compatible with each other.

Instead of the user, the process in the flow chart illustrated in FIG.45 may have a configuration of being operated by functional portionincluded in the robot control device 130. In this case, the process inStep S610 determines whether the image capturing condition is stable ornot, for example, based on an output value from a sensor that detects aphysical amount indicating the image capturing condition in the capturerange such as a sensor that detects brightness in the capture range.

Modified Example of Embodiment

Hereinafter, a modified example of the embodiment according to theinvention is described with reference to the drawings. In the modifiedexample of the embodiment, when the corresponding information isgenerated, the robot control device 130 generates the correspondinginformation based on two or more sample images, instead of theconfiguration of generating the corresponding information based on onesample image.

With Respect to Flow of Process for Generating Corresponding InformationAccording to Modified Example of Embodiment

Hereinafter, a process in which the robot control device 130 generatesthe corresponding information according to the modified example of theembodiment with reference to FIG. 46. FIG. 46 is a flow chartillustrating an example of the flow of the process in which the robotcontrol device 130 generates the corresponding information according tothe modified example of the embodiment. Among the processes of the flowchart illustrated in FIG. 46, processes of Steps S1400 to S1425,processes of Steps S1430 to S1450, processes of Steps S1470 to S1480,and a process of Step S1495 are the same as the processes of Steps S1400to S1425, the processes of Steps S1430 to S1450, the processes of StepsS1470 to S1480, and the process of Step S1495 illustrated in FIG. 43,and the descriptions thereof are omitted. Hereinafter, a case where thesample image reading portion 153 reads each of the sample images GS1 toGS3 which are three sample images different from each other in StepS1425 is described. The number of sample images that the sample imagereading portion 153 reads from the storage portion 32 in Step S1425 maybe any numbers, as long as the number is 2 or greater.

After the sample image reading portion 153 reads 2 or more sample images(in this example, the sample images GS1 to GS3) from the storage portion32 in Step S1425, the corresponding information generating portion 154selects the aforementioned sample images one by one and repeatedlyperforms processes (including processes from Steps S1430 to S1480) fromSteps S710 to S730 for each selected sample image (Step S700).

After the sample image is selected in Step S700, the correspondinginformation generating portion 154 generates the table storingcorresponding information for each condition that is generated for eachsample image in the storage area of the storage portion 32. Thecorresponding information generating portion 154 initializes theaforementioned table generated in the storage area of the storageportion 32 (Step S710). For example, the corresponding informationgenerating portion 154 stores null information in each field storing theinformation in the aforementioned table, as initialization of theaforementioned table. Instead of this, the corresponding informationgenerating portion 154 may have a configuration of initializing theaforementioned table by another method.

As described above, the sample images have different image capturingconditions when the sample image is captured. Therefore, before thecorresponding information is generated, the corresponding informationgenerating portion 154 in this example generates correspondinginformation for each condition for each sample image and generates thecorresponding information based on the generated correspondinginformation for each condition. The corresponding information for eachcondition is information in which the marker ID, the detectable minimumthreshold value and the detectable maximum threshold value indicatingthe detectable range, the information illustrating whether the markerillustrated by the marker ID is detected in the second detection method(detection by the maximum likelihood estimation), and the binarizedthreshold value by the aforementioned second detection method areassociated with each other as stored in the table illustrated in FIG.47. FIG. 47 is a diagram of exemplifying corresponding information foreach condition that is generated for each of the sample images GS1 toGS3. In this example, the information illustrating which the markerillustrated by the marker ID can be detected by the second detectionmethod is “1”, and the information illustrating which the aforementioneddetection cannot be performed is “0”. In this example, in a case wherethe aforementioned detection cannot be performed in the aforementionedbinarized threshold value, null information is stored.

After detection of the target marker by the second detect process inStep S1450 is executed, the corresponding information generating portion154 determines whether the detection of the target marker in Step S1450succeeds or not (Step S715). In a case where it is determined that thedetection of the target marker succeeds (Step S715-Yes), thecorresponding information generating portion 154 proceeds to Step S1470and repeatedly executes the process of Step S1480 for each search rangewhich is set in the sample image in Step S1440. Meanwhile, in a casewhere it is determined that the detection of the target marker does notsucceed (Step S715-No), the corresponding information generating portion154 proceeds to Step S1440 and selects the next search range. In thisexample, since there is only one search range, in a case where it isdetermined that the detection of the target marker does not succeed, thecorresponding information generating portion 154 proceeds to Step S1470and repeatedly executes the process of Step S1480 for each search rangewhich is set in the sample image in Step S1440.

After the process of Step S1480 is executed on all the search ranges inthe processes of Steps S1470 to S1480, the corresponding informationgenerating portion 154 generates the corresponding information for eachcondition in which the detectable minimum threshold value and thedetectable maximum threshold value derived in Step S1480, the marker IDillustrating the target marker, the information illustrating whether thetarget marker is detected by the second detection method which is aresult of determination in Step S715, and the binarized threshold valuedetermined in Step S1450 are associated with each other (Step S720).

Subsequently, the corresponding information generating portion 154stores the corresponding information generated in Step S720 in the tableinitialized in Step S710 (Step S730). The corresponding informationgenerating portion 154 proceeds to Step S1430 and selects the nextmarker ID. In a case where an unselected marker ID does not exist inStep S1430, the corresponding information generating portion 154proceeds to Step S700 and selects the next sample image. In a case wherean unselected sample image does not exist in Step S700, thecorresponding information generating portion 154 proceeds to Step S740and generates the corresponding information based on the correspondinginformation for each condition generated in Step S720 (Step S740).

Here, the process of Step S740 is described with reference to FIG. 48.FIG. 48 is a diagram illustrating a process for generating thecorresponding information based on the corresponding information foreach condition. With respect to the graph illustrated in FIG. 48, ahorizontal axis illustrates a sample image ID identifying each sampleimage and a vertical axis illustrates luminance which is a binarizedthreshold value. In this example, the sample image ID of a sample imageGS1 is “1”, the sample image ID of a sample image GS2 is “2”, and thesample image ID of a sample image GS3 is “3”.

In the aforementioned graph, the detectable minimum value and thedetectable maximum value in the corresponding information for eachcondition generated based on the aforementioned sample image and thebinarized threshold value in the aforementioned correspondinginformation for each condition are plotted for each sample imageillustrated by the sample image ID. The aforementioned binarizedthreshold value is a binarized threshold value in the second detectionmethod. In the graph illustrated in FIG. 48, detectable minimumthreshold values Mm1 to Mm3 in the corresponding information for eachcondition generated based on each sample image are respectivelyillustrated by outlined triangles, detectable maximum threshold valuesMx1 to Mx3 in the aforementioned corresponding information for eachcondition are illustrated by outlined squares, and binarized thresholdvalues L1 to L3 in the aforementioned corresponding information for eachcondition are respectively illustrated by horizontal bars in black heavylines.

A range between the detectable minimum threshold value Mm1 and thedetectable maximum threshold values Mx1 is a detectable range D1 derivedbased on the sample image GS1. A range between detectable minimumthreshold value Mm2 and the detectable maximum threshold values Mx2 is adetectable range D2 derived based on the sample image GS2. A rangebetween the detectable minimum threshold value Mm3 and the detectablemaximum threshold values Mx3 is a detectable range D3 derived based onthe sample image GS3.

Here, the corresponding information generating portion 154 specifies amaximum detectable minimum threshold value which is the greatestdetectable minimum threshold value among the detectable minimumthreshold values in each corresponding information for each conditiongenerated based on each sample image. In the example illustrated in FIG.48, the maximum detectable minimum threshold value is the detectableminimum threshold value Mm2. The corresponding information generatingportion 154 specifies the minimum detectable maximum threshold valuewhich is the smallest detectable maximum threshold value among thedetectable maximum threshold values of the corresponding information foreach condition generated based on the respective sample images. In theexample illustrated in FIG. 48, the minimum detectable maximum thresholdvalue is the detectable maximum threshold value Mx3.

The corresponding information generating portion 154 specifies a rangebetween the minimum detectable maximum threshold value and the maximumdetectable minimum threshold value, as a common detectable range D4. Inthe example illustrated in FIG. 48, a range between the detectablemaximum threshold value Mx3 which is the minimum detectable maximumthreshold value and the detectable minimum threshold value Mm2 which isthe maximum detectable minimum threshold value is illustrated as thecommon detectable range D4. In a case where a common detectable range isa value of 1 or greater, the corresponding information generatingportion 154 calculates an average value between the minimum detectablemaximum threshold value and the maximum detectable minimum thresholdvalue as the binarized threshold value (predetermined value) in thethird detection method.

The corresponding information generating portion 154 associates thecalculated aforementioned binarized threshold value with the marker IDillustrating the target marker as the information illustrating the thirddetection method. The corresponding information generating portion 154generates the corresponding information by associating the minimumdetectable maximum threshold value and the maximum detectable minimumthreshold value in the common detectable range with the markers IDillustrating the target markers, as the detectable minimum thresholdvalue and the detectable maximum threshold value indicating thedetectable range of the target marker.

In a case where the common detectable range is a value of 0 or less,that is, in a case where a common detectable range does not exist, thecorresponding information generating portion 154 determines whether thebinarized threshold value calculated by the second detection methodbased on the aforementioned sample image in the detectable range derivedbased on the aforementioned sample image for each sample image isincluded or not. In a case where it is determined that all of thebinarized threshold values calculated based on the aforementioned sampleimage are included in the detectable range derived based on theaforementioned sample image, the corresponding information generatingportion 154 associates the information illustrating the second detectionmethod with the marker ID illustrating the target marker. Thecorresponding information generating portion 154 generates correspondinginformation by associating the null information with the marker IDillustrating the target marker as the detectable minimum threshold valueand the detectable maximum threshold value indicating the detectablerange of the target marker.

Meanwhile, in a case where it is determined that at least one of thebinarized threshold values calculated based on the aforementioned sampleimage is not included in the detectable range derived based on theaforementioned sample image, the corresponding information generatingportion 154 associates the information illustrating the first detectionmethod with the marker ID illustrating the target marker. Thecorresponding information generating portion 154 generates correspondinginformation in which the null information is associated with the markerID illustrating the target marker as the detectable minimum thresholdvalue and the detectable maximum threshold value indicating thedetectable range of the target marker.

In the example illustrated in FIG. 48, a binarized threshold value L2 isnot included in the detectable range D2, and further the binarizedthreshold value L3 is not included in the detectable range D3.Therefore, the corresponding information generating portion 154determines that at least one of the binarized threshold valuescalculated based on the aforementioned sample image is not included inthe detectable range derived based on the aforementioned sample image.

In this manner, the robot control device 130 generates or more sampleimages having different image capturing conditions and correspondinginformation based on the marker information. Accordingly, the robotcontrol device 130 can obtain the same effect as the embodiment. As aresult, the robot control device 130 can make the improvement in thedetection accuracy of the marker and the shortening of the detectiontime of the marker be compatible with each other.

With Respect to Flow of Process for Editing Corresponding Information inModification of Embodiment

Hereinafter, the determining method of the marker detection method bythe user in a case where the user changes a marker detection methodassociated with the marker ID among the edition of the correspondinginformation performed by the user is described with reference to FIG.49. FIG. 49 is a flow chart illustrating an example of a flow of thedetermining method of the marker detection method by the user accordingto the modified example of the embodiment. Instead of the user, theprocess in the flow chart illustrated in FIG. 49 may have aconfiguration of being performed by the functional portion included inthe robot control device 130.

The user selects the markers ID included in the marker information oneby one and performs processes of Steps S810 to S850 for each targetmarker, using the marker illustrated by the selected marker ID as thetarget marker (Step S800).

Subsequently, the user determines whether the common detectable range isa value of 1 or greater based on the corresponding information for eachcondition (Step S810). In a case where it is determined that the commondetectable range is a value of 1 or greater (Step S810-Yes), the userselects the third detection method as the marker detection method of thetarget marker (Step S820). This is because it is desired to cause therobot control device 130 to preferentially select a method having theshortest detection time of the target marker.

Meanwhile, in a case where it is determined that the common detectablerange is not a value of 1 or greater (Step S810-No), the user determineswhether the target marker can be detected by the second detection methodbased on the corresponding information for each condition or not (StepS830). Specifically, in a case where all of the binarized thresholdvalues calculated by the second detection method based on theaforementioned sample images in the detectable range derived based onthe aforementioned sample images are included for each sample image, theuser determines that the target marker can be detected by the seconddetection method based on the corresponding information for eachcondition.

In a case where it is determined that the target marker can be detectedby the second detection method (Step S830-Yes), the user selects thesecond detection method as the marker detection method of the targetmarker (Step S840). This is because the second detection method has ashorter detection time than the first detection method. Meanwhile, in acase where it is determined that the target marker cannot be detected bythe second detection method (Step S830-No), the user selects the firstdetection method as the marker detection method of the target marker(Step S850).

In this manner, the user determines the marker detection method for eachof the plural markers. In this manner, the user can associate markerdetection method appropriate for detecting the aforementioned markerwith the aforementioned marker for each of the plural markers. As aresult, the robot control device 130 can more reliably cause theimprovement in the detection accuracy of the marker and the shorteningof the detection time of the marker are compatible with each other.

Among the plural markers described above, two markers (for example, twomarkers of marker associated with first detection method and markerassociated with second detection method) respectively associated withthe different marker detection method are examples of the first markerand the second marker.

As described above, the robot control device 130 (or image processingdevice independent from the robot control device 130) of the robot 120according to the embodiment can detect the markers (in this example, themarkers Mk11 to MkN) by the plural marker detection methods and detectsthe markers by one marker detection method among the plural markerdetection methods. Accordingly, the robot control device 130 can makethe improvement in the detection accuracy of the marker and theshortening of the detection time of the marker be compatible with eachother.

When the markers associated with the first detection method among theplural markers are detected, the robot control device 130 detects themarker by changing the threshold value for detecting the marker from theimage (in this example, captured image) in the predetermined range.Accordingly, when the markers associated with the first detection methodamong the plural markers are detected, the robot control device 130 canimprove the detection accuracy of the marker.

When detecting the marker associated with the second detection methodamong the plural markers, the robot control device 130 detects themarker using a value (in this example, value obtained by Otsu's method)obtained by the maximum likelihood estimation as the threshold value fordetecting the marker from the image. Accordingly, the marker associatedwith the second detection method among the plural markers is detected,the robot control device 130 can shorten the detection time of themarker.

When the marker associated with the third detection method among theplural markers is detected, the robot control device 130 detects themarker using the predetermined value as the threshold value fordetecting the marker from the image. Accordingly, when the markerassociated with the third detection method among the plural markers isdetected, the robot control device 130 can shorten the detection time ofthe marker.

The robot control device 130 detects the marker by the detection methodof the marker using the threshold value (in this example, binarizedthreshold value) for detecting the marker from the image and forbinarizing the aforementioned image. Accordingly, the robot controldevice 130 can make the improvement in the detection accuracy of themarker and the shortening of the detection time of the marker becompatible with each other, by the detection method of the marker usingthe threshold value for binarizing the image.

The robot control device 130 detects a marker by the detection method ofthe marker using the threshold value for determining the color of theaforementioned image and for detecting the marker from the image.Accordingly, the robot control device 130 can make the improvement inthe detection accuracy of the marker and the shortening of the detectiontime of the marker be compatible with each other by the detection methodof the marker using the threshold value for determining the color of theimage.

The robot control device 130 detects the marker based on the table (inthis example, table in which corresponding information is stored) inwhich the marker and the detection method of the marker are associatedwith each other. Accordingly, the robot control device 130 can make theimprovement in the detection accuracy of the marker and the shorteningof the detection time of the marker be compatible with each other basedon the table in which the markers and the detection methods of themarker are associated with each other.

The robot control device 130 determines the detection method of thefirst marker, based on the first marker (in this example, the markersMk11 to MkN included in captured image) included in the image and thefirst marker (in this example, the markers Mk11 to MkN included insample image) included in the image having different image capturingcondition from that of the aforementioned image. Accordingly, the robotcontrol device 130 can make the improvement in the detection accuracy ofthe marker and the shortening of the detection time of the marker becompatible with each other by the detection method of the first markerdetermined based on the first marker included in the image and the firstmarker included in the image having a different image capturingcondition from that of the aforementioned image.

The robot control device 130 can edit the detection method of the firstmarker by causing the display portion to display the threshold value fordetecting the first marker included in the image and the threshold valuefor detecting the first marker included in the image having a differentimage capturing condition from that of the aforementioned image.Accordingly, the robot control device 130 can make the improvement inthe detection accuracy of the marker and the shortening of the detectiontime of the marker be compatible with each other by the edited detectionmethod of the first marker.

The image process portion 144 in the control portion 136 may bedifferent from the robot control device 130 as the image processingdevice. In this case, the robot 120, the robot control device 130, andthe aforementioned image processing device configure the robot system.In this case, the image processing device may have a configuration ofoutputting the information based on the detected marker to anotherdevice different from the robot control device 130 and causing theaforementioned another device to display the aforementioned informationsuch as augmented reality (AR). The information based on the detectedmarker is information associated with the aforementioned marker.

A portion or all of the first image capturing portion 21, the secondimage capturing portion 22, the third image capturing portion 23, andthe fourth image capturing portion 24 may be an image capturing portionindependent from the robot 120. In this case, the robot 120, the imagecapturing portion independent from the robot 120, the robot controldevice 130, and the image processing device configure the robot system.

Third Embodiment

Hereinafter, a third embodiment is described with reference to drawings.According to the present embodiment, differences from the embodimentsdescribed above are mainly described, the same components are denoted bythe same reference numerals, and descriptions thereof may be omitted orsimplified.

FIG. 50 is a configuration diagram illustrating an example of a robot220 according to the third embodiment.

Configuration of Robot 220

First, a configuration of the robot 220 is described.

The robot 220 is a double arm robot including a first arm, a second arm,a support supporting the first arm and the second arm, and a robotcontrol device 230. The double arm robot is a robot including two armssuch as a first arm and a second arm in this example. The robot 220 is asingle arm robot, instead of a double arm robot. The single arm robot isa robot including one arm. For example, the single arm robot includesany one of a first arm and a second arm. The robot 220 may be a duplexarm robot including three or more arms, instead of a double arm robot.

The first arm includes a first end effector E1 and a first manipulatorM1. The first arm according to the present embodiment is the same asthat according to the embodiments above, and thus descriptions thereofare omitted.

The first end effector E1 is communicably connected to the robot controldevice 230 via cables. Accordingly, the first end effector E1 performsan operation based on a control signal acquired from the robot controldevice 230. For example, cable communication via cables is performed bystandards such as Ethernet (Registered trademark) or universal serialbus (USB). The first end effector E1 may be a configuration connected tothe robot control device 230 via wireless communication performed bycommunication standard such as Wi-Fi (Registered trademark).

The seven actuators (included in the joints) included in the firstmanipulator M1 are respectively communicably connected to the robotcontrol device 230 via cables. Accordingly, the aforementioned actuatorsoperates the first manipulator M1 based on a control signal acquiredfrom the robot control device 230. The cable communication via thecables is performed, for example, by standards such as Ethernet(Registered trademark) or USB. A portion or all of the seven actuatorsincluded in the first manipulator M1 may have a configuration of beingconnected to the robot control device 230 via wireless communicationperformed by communication standard such as Wi-Fi (Registeredtrademark).

The first image capturing portion 21 is the same as that according tothe embodiments above, and thus descriptions thereof are omitted.

The first image capturing portion 21 is communicably connected to therobot control device 230 via cables. The cable communication via thecables is performed, for example, by standards such as Ethernet(Registered trademark) or USB. The first image capturing portion 21 mayhave a configuration of being connected to the robot control device 230by wireless communication performed by communication standards such asWi-Fi (Registered trademark).

The second arm includes the second end effector E2 and the secondmanipulator M2. The second arm according to the present embodiment isthe same as that according to the embodiments above, and thusdescriptions thereof are omitted.

The second end effector E2 is communicably connected to the robotcontrol device 230 via the cables. Accordingly, the second end effectorE2 performs an operation based on a control signal acquired from therobot control device 230. The cable communication via the cables isperformed, for example, by standard such as Ethernet (Registeredtrademark) or USB. The second end effector E2 may have a configurationof being connected to the robot control device 230 by wirelesscommunication performed by communication standard such as Wi-Fi(Registered trademark).

The seven actuators (included in the joints) included in the secondmanipulator M2 are respectively communicably connected to the robotcontrol device 230 via cables. Accordingly, the aforementioned actuatorsoperates the second manipulator M2 based on a control signal acquiredfrom the robot control device 230. The cable communication via thecables is performed, for example, by standards such as Ethernet(Registered trademark) or USB. A portion or all of the seven actuatorsincluded in the second manipulator M2 may have a configuration of beingconnected to the robot control device 230 via wireless communicationperformed by communication standard such as Wi-Fi (Registeredtrademark).

The second image capturing portion 22 is the same as that according tothe embodiments above, and thus descriptions thereof are omitted.

The second image capturing portion 22 is communicably connected to therobot control device 230 via cables. The cable communication via thecables is performed, for example, by standards such as Ethernet(Registered trademark) or USB. The second image capturing portion 22 mayhave a configuration of being connected to the robot control device 230by wireless communication performed by communication standards such asWi-Fi (Registered trademark).

The robot 220 includes the third image capturing portion 23 and thefourth image capturing portion 24. The third image capturing portion 23,the fourth image capturing portion 24 according to the presentembodiment are the same as those according to the embodiments above, andthus descriptions thereof are omitted.

The third image capturing portion 23 is communicably connected to therobot control device 230 via the cables. The cable communication via thecables is performed, for example, by standards such as Ethernet(Registered trademark) or USB. The third image capturing portion 23 mayhave a configuration of being connected to the robot control device 230by wireless communication performed by communication standards such asWi-Fi (Registered trademark).

The fourth image capturing portion 24 is communicably connected to therobot control device 230 via the cables. The cable communication via thecables is performed, for example, by standards such as Ethernet(Registered trademark) or USB. The fourth image capturing portion 24 mayhave a configuration of being connected to the robot control device 230by wireless communication performed by communication standards such asWi-Fi (Registered trademark).

The respective functional portions that the robot 220 include, forexample, acquires control signals from the robot control device 230built in the robot 220. The aforementioned respective functionalportions perform operations based on the acquired control signals. Therobot 220 may have a configuration of being controlled by the robotcontrol device 230 installed on an external portion, instead of theconfiguration in which the robot control device 230 is built. In thiscase, the robot 220 and the robot control device 230 configure a robotsystem. The robot 220 may have a configuration of not including at leasta portion of the first image capturing portion 21, the second imagecapturing portion 22, the third image capturing portion 23, or thefourth image capturing portion 24.

The robot control device 230 operates the robot 220 by transmitting acontrol signal to the robot 220. Accordingly, the robot control device230 causes the robot 220 to perform a predetermined work.

Overview of Predetermined Work Performed by Robot 220

Hereinafter, an overview of the predetermined work performed by therobot 220 is described.

In this example, the robot 220 grips an object disposed a work areawhich is an area in which a work can be performed by both of the firstarm and the second arm and performs a work of supplying (disposing) thegripped object to a material supplying area (not illustrated), as apredetermined work. The robot 220 may have a configuration of performingother works instead of this, as the predetermined work. The work areamay be an area in which a work can be performed by any one of the firstarm and the second arm.

In this example illustrated in FIG. 50, the work area is an areaincluding an upper surface of a workbench TB. The workbench TB is, forexample, a table. The workbench TB may be another object such as a flooror a shelf, instead of the table. N target objects O1 to ON are disposedas the object that the robot 220 grips, on an upper surface of theworkbench TB. N is an integer of 1 or greater.

Each of the target objects O1 to ON is, for example, an industrialcomponent or an industrial member such as a plate, a screw, or a boltmounted in a product. In FIG. 50, in order to simplify drawings, thetarget objects O1 to ON are respectively illustrated as objects in arectangular shape. Each of the target objects O1 to ON may be otherobjects such as a commodity or an organism instead of an industrialcomponent or an industrial member. The respective shapes of the targetobjects O1 to ON may be other shapes instead of the rectangular shape. Aportion of all of respective shapes of the target objects O1 to ON maybe identical to each other or may be different from each other.

Overview of Process Performed by the Robot Control Device 230

Hereinafter, an overview of a process performed by the robot controldevice 230 is described, in order to cause the robot 220 to perform apredetermined work.

The robot control device 230 causes the robot 220 to capture a rangeincluding a work area as a capture range. The robot control device 230acquires captured images that the robot 220 captures. The robot controldevice 230 detects a marker attached in the work area based on theacquired captured images. The robot control device 230 causes the robot220 to perform a predetermined work according to the detected marker.

In this example, the marker attached in the work area is attached toeach of the target objects O1 to ON disposed on the upper surface of theworkbench TB in the work area. Instead of this, a portion or all of themarker attached to the work area may have a configuration of beingattached to other objects of the target objects O1 to ON in the workarea, the upper surface of the workbench TB, or the like.

The target objects O1 to ON are attached respectively to markersdifferent from each other. These markers respectively illustratepositions of the target objects O1 to the ON in the robot coordinatesystem. For example, the marker Mk11 attached to the target object O1illustrates a position of the target object O1 in the robot coordinatesystem. A marker MkN attached to the target object ON illustrates aposition of the target object ON in the robot coordinate system. Aportion or all of the markers attached to the target objects O1 to ONare the same marker. Respective markers may have a configuration ofillustrating other information such as a configuration of illustratingan operation of the robot 220, instead of the configuration ofillustrating the positions of the target objects O1 to ON in the robotcoordinate system.

The robot control device 230 in this example causes the third imagecapturing portion 23 and the fourth image capturing portion 24 tostereoscopically capture the capture range. The robot control device 230acquires captured images that the third image capturing portion 23 andthe fourth image capturing portion 24 stereoscopically capture. Therobot control device 230 detects each of N markers Mk11 to MkNrespectively attached to the target objects O1 to ON based on theacquired captured images.

The robot control device 230 calculates positions of each of thedetected markers Mk11 to MkN illustrate in the robot coordinate system.The robot control device 230 causes the robot 220 to grip each of thetarget objects O1 to ON one by one, based on the calculated positionsand supplies the target objects O1 to ON to the material supplying area(not illustrated). In this example, the robot control device 230 causesthe first arm to grip the target objects O1 to ON one by one andsupplies the target objects O1 to ON to the material supplying area (notillustrated). Instead of this, the robot control device 230 may have aconfiguration of causing the second arm to grip each of the targetobjects O1 to ON one by one or may have another configuration such as aconfiguration of causing both of the first arm and the second arm togrip each of the target objects O1 to ON one by one.

When the marker is detected from the captured image, the robot controldevice 230 converts the captured image into a grayscale image (grayscaleprocess). In this example, the robot control device 230 converts thecaptured image into a 256 gradation grayscale image in the grayscaleprocess of the captured image. The robot control device 230 converts thegrayscale image converted in the grayscale process, into a binarizedimage (monochrome image) (binarization process). The binarizationprocess is a process for converting a grayscale image into a binarizedimage by converting a color of a pixel having luminance of apredetermined threshold value or greater on a grayscale image into whiteand converting a pixel having luminance of less than the aforementionedthreshold value into black. In this example, a binarized threshold valueis luminance that is determined (selected) for each marker detected bythe robot control device 230 and is luminance indicated by any oneinteger determined (selected) in the range from 0 to 255. The robotcontrol device 230 may have a configuration of converting the capturedimage into another gradation grayscale image, instead of theconfiguration of converting the captured image into a 256 gradationgrayscale image.

The accuracy in which the robot control device 230 detects the markerfrom the captured image is changed according to the luminance selectedas the predetermined threshold value when this binarization process isperformed. Specifically, in a case where the luminance appropriate fordetecting the marker is not selected as the predetermined thresholdvalue and luminance that is not appropriate for detecting the marker isselected, the robot control device 230 may not detect a portion or allof the N markers in some cases. In this example, the luminanceappropriate for detecting the marker as the predetermined thresholdvalue is a value for realizing the binarization process for convertingthe captured image to the binarized image that can detect all N markersfrom the captured image including N markers. Instead of this, theluminance appropriate for detecting the marker as the predeterminedthreshold value may be another value such as a value for realizing thebinarization process for converting the captured image into thebinarized image that can detect N markers by a predetermined number ormore from the captured image including the N markers or a value forrealizing the binarization process for converting the captured imageinto the binarized image that can cause the most markers to be detectedfrom the captured image including N markers.

When a predetermined work is performed in the robot 220, the robotcontrol device 230 performs a process for determining the thresholdvalue for converting the captured image into the binarized image inadvance. According to the present embodiment, a process in which therobot control device 230 determines the aforementioned threshold valueis described. Here, an overview of the aforementioned process isdescribed. The robot control device 230 determines the first thresholdvalue which is the threshold value for binarizing at least a portion ofthe image (for example, captured image described above) included in oneor more markers based on the number of markers detected from theaforementioned image. Accordingly, the robot control device 230 candetect the marker with high accuracy and as a result, all the markersincluded in the image can be detected.

Details of Marker

Hereinafter, details of the marker that the robot control device 230detects from the captured image are described. The marker (that is, eachof the markers Mk11 to MkN) is the figure center marker. Here, thefigure center marker and the figure center of the figure center markerare the same as those according to the second embodiment, and thusdescriptions thereof are omitted.

In this example, a position of the object (for example, each of thetarget objects O1 to ON illustrated in FIG. 50) to which these figurecenter marker are attached is indicated by the position of the figurecenter of the aforementioned figure center marker. The position of thefigure center of the aforementioned figure center marker is indicated bya vector (average of three or more vectors) obtained by dividing the sumof the vectors illustrating the positions of the three or more figurecenters included in the predetermined range by the number of figurecenters. Instead of this, the position of the object to which theaforementioned figure center marker is attached may have a configurationof being indicated by another position associated with the position ofthe figure center of the aforementioned figure center marker. The robotcontrol device 230 according to the present embodiment detects each ofthe markers Mk11 to MkN that are figure center markers illustrated inFIGS. 9 to 11, 30, and 31 from the captured image and calculates aposition of a figure center of each of the detected markers Mk11 to MkNas a position of each of the target objects O1 to ON.

Instead of these figure center markers, the marker that the robotcontrol device 230 detects may be another marker such as a color marker,a barcode, or a QR code (Registered trademark).

Relationship with Binarized Threshold Value and Accuracy in which theRobot Control Device 230 Detects Marker

Hereinafter, a relationship with the binarized threshold value andaccuracy in which the robot control device 230 detects a marker isdescribed with reference to FIGS. 51 to 55.

FIG. 51 is a diagram illustrating an example of the captured imageincluding 64 figure center markers. 64 figure center markers Mks ofmarkers Mks1 to Mks64 are included in a captured image G1 illustrated inFIG. 51. In a case where the robot control device 230 selects theluminance that is not appropriate for detecting the marker as thebinarized threshold value of the captured image G1, the binarized imageobtained by binarizing the captured image G1 by the robot control device230 becomes the binarized image G2 illustrated in FIG. 52.

FIG. 52 is a diagram illustrating an example of a binarized image in acase where the robot control device 230 binarizes the captured image G1illustrated in FIG. 51 based on the luminance that is not appropriatefor detecting the marker. As illustrated in FIG. 52, at least a portionof the 64 figure center markers included in the captured image G1blackens out in the binarized image G2 in which the robot control device230 binarizes the captured image G1 illustrated in FIG. 51 based on theluminance that is not appropriate for detecting the marker.

FIG. 53 is a diagram of exemplifying each of the three or more figuresthat configures the figure center markers that is detected by the robotcontrol device 230 from the binarized image G2 illustrated in FIG. 52.In FIG. 53, the aforementioned figures are respectively differentiatedaccording to the difference of hatching. As illustrated in FIG. 53, aportion of the three or more figures that configure the figure centermarkers detected by the robot control device 230 from the binarizedimage G2 blackens out, another portion thereof is detected as figures inshapes different from the original, a portion of the three or morefigures that configures the figure center markers is detected as onefigure in still another portion, and the rest portion is normallydetected. That is, the robot control device 230 cannot detect figurecenter markers of all of the markers Mks1 to Mks64 from the binarizedimage G2 obtained by binarizing the captured image G1 based on theluminance that is not appropriate for detecting the marker.

Meanwhile, FIG. 54 is a diagram illustrating an example of a binarizedimage in a case where the robot control device 230 binarizes thecaptured image G1 illustrated in FIG. 51 based on the luminanceappropriate for detecting the marker. As illustrated in FIG. 54, in abinarized image G3 obtained by binarizing the captured image G1illustrated in FIG. 51 by the robot control device 230 based on theluminance appropriate for detecting the marker, all of the 64 figurecenter markers included in the captured image G1 do not blacken out.

FIG. 55 is a diagram of exemplifying each of the three or more figuresthat configure the figure center markers detected by the robot controldevice 230 from the binarized image G2 illustrated in FIG. 54. In FIG.55, the aforementioned figures are respectively differentiated accordingto the difference of hatching. As illustrated in FIG. 55, all of thethree or more figures that configure the figure center markers detectedby the robot control device 230 from the binarized image G3 are normallydetected. That is, the robot control device 230 can detect all desiredfigure center markers of the marker Mks1 to the marker Mks64, from thebinarized image G3 obtained by binarizing the captured image G1 based onluminance appropriate for detecting the marker.

In this manner, in a case where the luminance selected as the binarizedthreshold value is luminance that is not appropriate for detecting thetarget marker, the robot control device 230 cannot detect the targetmarker in some cases. However, in a case where the luminance selected asthe binarized threshold value is luminance appropriate for detecting thetarget marker, the robot control device 230 can detect the targetmarker. Therefore, selecting luminance appropriate for detecting thetarget marker by the robot control device 230 as the binarized thresholdvalue is important for the robot control device 230 to cause the robot220 to perform a work with high accuracy.

Hardware Configuration of Robot Control Device 230

Hereinafter, hardware configuration of the robot control device 230 isdescribed with reference to FIG. 56. FIG. 56 is a diagram illustratingan example of the hardware configuration of the robot control device230. For example, the robot control device 230 includes the centralprocessing unit (CPU) 31, the storage portion 32, the input receivingportion 33, the communication portion 34, and the display portion 35.The robot control device 230 performs a communication with the robot 220via the communication portion 34. These components are communicablyconnected to each other via the buses Bus.

The CPU 31, the storage portion 32, the input receiving portion 33, thecommunication portion 34, and the display portion 35 are the same asthose according to the embodiments above, and thus descriptions thereofare omitted.

Instead of being built in the robot control device 230, the storageportion 32 may be an external storage device connected by a digitalinput-output port such as USB. The storage portion 32 stores variousitems of information, images, or programs that the robot control device230 processes or information illustrating a position of the materialsupplying area (not illustrated).

Functional Configuration of Robot Control Device 230

Hereinafter, the functional configuration of the robot control device230 is described with reference to FIG. 57. FIG. 57 is a diagramillustrating an example of the functional configuration of the robotcontrol device 230. The robot control device 230 includes the storageportion 32 and a control portion 236.

The control portion 236 controls the entire robot control device 230.The control portion 236 includes the image capturing control portion 40,the image acquisition portion 42, an image process portion 244, and therobot control portion 46. These functional portions included in thecontrol portion 236 are realized, for example, by the CPU 31 executingvarious programs stored in the storage portion 32. A portion or all ofthese functional portions may be hardware functional portions such as alarge scale integration (LSI) or an application specific integratedcircuit (ASIC).

The image capturing control portion 40 causes the third image capturingport ion 23 and the fourth image capturing portion 24 tostereoscopically capture the capture range including the work area.

The image acquisition portion 42 acquires the captured imagesstereoscopically captured by the third image capturing portion 23 andthe fourth image capturing portion 24 from the third image capturingportion 23 and the fourth image capturing portion 24.

The image process portion 244 performs various image processes withrespect to the captured image acquired by the image acquisition portion42. The image process portion 244 includes a grayscale process portion250, a second threshold value setting portion 251, a binarizationprocess portion 252, an area detection portion 253, a labeling portion254, a marker detecting portion 255, an evaluation value calculatingportion 256, and a first threshold value determining portion 257.

The grayscale process portion 250 converts the captured image acquiredby the image acquisition portion 42 into the grayscale image.

The second threshold value setting portion 251 sets a second thresholdvalue which is a temporary threshold value for binarizing the grayscaleimage into the binarization process portion 252.

The binarization process portion 252 converts the grayscale image intothe binarized image based on the second threshold value set in thesecond threshold value setting portion 251. The binarization processportion 252 converts the grayscale image into the binarized image basedon the first threshold value determined by the first threshold valuedetermining portion 257.

The area detection portion 253 detects one or more partial areas fromthe binarized image. The partial area that the area detection portion253 detects is a white partial area which is an area configured onlywith one or more white pixels in the aforementioned captured image and ablack partial area configured only with one or more black pixels in theaforementioned captured image. In a case where pixels having the samecolor as the color of the aforementioned pixel exist around eight pixelswith the pixel selected from the aforementioned captured image exists,the area detection portion 253 regards these pixels as pixels includedin one connected partial area.

The labeling portion 254 performs labeling for differentiating thepartial area detected by the area detection portion 253. For example,the labeling portion 254 performs labeling by associating the areas IDwith each of the aforementioned partial areas.

The marker detecting portion 255 detects the figure center marker fromthe binarized image.

The evaluation value calculating portion 256 calculates the number ofpartial areas labeled by the labeling portion 254 and the number offigure center markers detected by the marker detecting portion 255. Theevaluation value calculating portion 256 calculates the evaluation valuefor evaluating whether the second threshold value that the secondthreshold value setting portion 251 sets for the binarization processportion 252 is appropriate for detecting the marker or not, based on thenumber of the calculated aforementioned partial areas and the number ofthe aforementioned figure center markers.

The first threshold value determining portion 257 determines the secondthreshold value of the highest evaluation value from the plural secondthreshold values as the first threshold value which is the thresholdvalue appropriate for detecting the marker based on the evaluation valuecalculated by the evaluation value calculating portion 256 for each ofthe plural second threshold values that the second threshold valuesetting portion 251 sets for the binarization process portion 252.Instead of this, the first threshold value determining portion 257 mayhave a configuration for determining the other second threshold value asthe first threshold value based on the aforementioned evaluation value.In this case, for example, the first threshold value determining portion257 determines the second threshold value selected based on thepredetermined rule as the first threshold value, among the secondthreshold values which are the predetermined value or greater. Forexample, the predetermined rule may be a rule for randomly selecting thesecond threshold value setting to be the first threshold value among thesecond threshold values which are the predetermined value or greater, arule for selecting the maximum second threshold value as first thresholdvalue, among the second threshold values which are the predeterminedvalue or greater, or may be a rule for selecting the minimum secondthreshold value as the first threshold value from the second thresholdvalues which are the predetermined value or greater.

The robot control portion 46 causes the robot 220 to perform thepredetermined work based on the figure center marker that the markerdetecting portion 255 detects.

With Respect to Flow of Process that the Control Portion 236 Performs inOrder to Determine First Threshold Value

Hereinafter, a process that the control portion 236 performs in order todetermine the first threshold value is described with reference to FIG.58. FIG. 58 is a flow chart illustrating an example of a flow of theprocess that the control portion 236 performs in order to determine thefirst threshold value. Hereinafter, a flow of a process of the controlportion 236 after the image acquisition portion 42 already has acquiredthe captured image from the third image capturing portion 23 and thefourth image capturing portion 24.

The evaluation value calculating portion 256 initializes the maximumevaluation value used in the processes from Steps S2130 to S2230 to zero(Step S2100). Instead of this, the evaluation value calculating portion256 may have a configuration of initializing the maximum evaluationvalue to another value. Subsequently, the evaluation value calculatingportion 256 initializes the maximum threshold value used in theprocesses from Steps S2130 to S2230 to zero (Step S2110). Instead ofthis, the evaluation value calculating portion 256 may have aconfiguration of initializing the maximum threshold value to anothervalue. Subsequently, the evaluation value calculating portion 256initializes the second threshold value set in the binarization processportion 252 into zero (Step S2120). Instead of this, the evaluationvalue calculating portion 256 may have a configuration of initializingthe second threshold value set in the binarization process portion 252to another value.

The processes from Steps S2100 to S2120 may have a configuration ofbeing performed by another functional portion that the control portion236 has, instead of a configuration of being performed by the evaluationvalue calculating portion 256. The processes from Steps S2100 to S2120may have a configuration of being performed in an order different fromthe order illustrated in FIG. 58 and may have a configuration of beingperformed in parallel.

Subsequently, the control portion 236 sets one or more search rangeswith respect to the captured image acquired by the image acquisitionportion 42 and repeatedly executes processes from Steps S2140 to S2220for each of the set search ranges (Step S2130). In this example, a casewhere there is only one search range (that is, a case where the searchrange is the entire captured image) is described.

After the search range is selected in Step S2130, the second thresholdvalue setting portion 251 selects the luminance from 0 to 255 one by oneas the second threshold value and repeatedly performs the processes fromSteps S2145 to S2220 for each selected second threshold value (StepS2140). For example, the second threshold value setting portion 251selects luminance (256 integer values including 0) from 0 to 255 from 0one by one as the second threshold value. Instead of this, the secondthreshold value setting portion 251 may have another configuration suchas a configuration for randomly selecting luminance from 0 to 255 one byone as the second threshold value.

After the second threshold value setting portion 251 selects the secondthreshold value in Step S2140, the second threshold value settingportion 251 sets the aforementioned second threshold value for thebinarization process portion 252 (Step S2145). Subsequently, thegrayscale process portion 250 converts the captured image acquired bythe image acquisition portion 42 to the grayscale image (Step S2150).Subsequently, the binarization process portion 252 converts thegrayscale image converted by the grayscale process portion 250 into thebinarized image in Step S2150 based on the second threshold value setfor the second threshold value setting portion 251 in Step S2145 (StepS2160).

Subsequently, the area detection portion 253 detects the white partialarea and the black partial area from the binarized image converted bythe binarization process portion 252 in Step S2160 as the partial area.The labeling portion 254 performs labeling for differentiating each ofthe partial areas detected by the area detection portion 253 (StepS2170).

Here, the process of Step S2170 is described. The partial area that thearea detection portion 253 detects includes a partial area detected bythe noise included in the binarized image and a partial area detected byeach of three or more figures that configures the figure center marker.The noise included in the binarized image includes a background otherthan the figure center marker in the captured image, reflection of lightor interference fringe in the captured image, or flickering of luminancefollowed by grayscale or binarization. The area detection portion 253detects each white partial area and each black partial area generated onthe binarized image by these noises, each white partial area detected byeach of the three or more figures that configures the figure centermarker, and each black partial area detected by each of the three ormore figures that configures the figure center marker, as the partialarea. The labeling portion 254 performs labeling for differentiatingeach partial area detected by the area detection portion 253.

Subsequently, the marker detecting portion 255 detects the figure centermarker from the binarized image converted by the binarization processportion 252 in Step S2160 (Step S2180). Here, the process of Step S2180is described. The marker detecting portion 255 calculates the positionof the figure center of each figure in a case where each partial arealabeled by the labeling portion 254 in Step S2170 is set as a figure.The marker detecting portion 255 detects a combination of the figure(that is, partial area) in which three or more figure centers belong tothe predetermined range as the figure center marker based on thecalculated position of the figure center. Among the partial areasdetected by the noise included in the binarized image, probability inwhich the partial area in which three or more figure centers belong tothe predetermined range is detected is smaller than probability in whicha partial area in which two figure centers belong to the predeterminedrange is detected, by several digits. Accordingly, probability in whichthe marker detecting portion 255 detects a partial area detected by anoise included in binarized image as the figure that configures thefigure center marker is small. Therefore, according to the presentembodiment, a process for removing a noise from the binarized image isnot performed, but the image process portion 244 may have aconfiguration of performing a process removing a noise from thebinarized image.

Subsequently, the evaluation value calculating portion 256 calculatesthe number of partial areas labeled by the labeling portion 254 in StepS2170. The evaluation value calculating portion 256 calculates thenumber of figure center markers detected by the marker detecting portion255 in Step S2180. The evaluation value calculating portion 256calculates the evaluation value based on the number of the calculatedfigure center markers and the number of the calculated partial areas(Step S2190). For example, the evaluation value calculating portion 256calculates a value obtained by dividing the number of the figure centermarkers by the number of the partial areas as the evaluation value. Theevaluation value calculating portion 256 may have a configuration ofcalculating another value based on the number of the figure centermarker and the number of the partial areas such as a value obtained bymultiplying a weight by a value obtained by dividing the number of thefigure center markers by the number of the partial areas as theevaluation value.

The evaluation value calculating portion 256 determines whether theevaluation value calculated in Step S2190 is greater than the currentmaximum evaluation value or not (Step S2200). In a case where it isdetermined that the evaluation value calculated in Step S2190 is greaterthan the current maximum evaluation value (Step S2200-Yes), theevaluation value calculating portion 256 sets the evaluation valuecalculated in Step S2190 to the maximum evaluation value (Step S2210).Subsequently, the evaluation value calculating portion 256 sets thecurrent second threshold value to the maximum threshold value (StepS2220). The second threshold value setting portion 251 proceeds to StepS2140 and selects the next luminance as the second threshold value.

Meanwhile, in a case where the evaluation value calculating portion 256determines that the evaluation value calculated in Step S2190 is notgreater than the current maximum evaluation value (Step S2200-No), thesecond threshold value setting portion 251 proceeds to Step S2140 andselects the next luminance as the second threshold value. After theprocesses from Steps S2145 to S2220 are performed on the total luminancethat can be selected in Step S2140, the control portion 236 proceeds toStep S2130, selects the next search area, and further performs processesfrom Steps S2140 to S2220. In this example, since there is only onesearch area, the control portion 236 executes the processes from StepsS2140 to S2220 are performed only one time.

In this manner, the control portion 236 calculates the evaluation valuefor each second threshold value selected in Step S2140 with respect tothe entire search area, that is, the entire captured image. Here, anevaluation value calculated for each second threshold value is describedwith reference to FIGS. 59 to 61. FIG. 59 is a diagram illustrating anexample of a graph in which the number of partial areas detected by thearea detection portion 253 in Step S2170 is plotted for each secondthreshold value. In FIG. 59, the horizontal axis indicates the secondthreshold value (that is, luminance selected in Step S2140) and thevertical axis indicates the number of the aforementioned partial areas.

As illustrated in FIG. 59, the luminance that can be selected as thesecond threshold value is 256 gradation from 0 to 255, and thus thenumber of partial areas becomes maximum near 127 and 128 in which thesecond threshold value is in the middle from 0 to 255. As the secondthreshold value goes far from 127 and 128, the number of the partialareas decreases. This is because probability in which the partial areadetected by the noise included in the binarized image is expressed onthe aforementioned binarized image in a manner of being biased on anyone side of the white partial area and the black partial area is low,the number of the black partial areas decreases as the second thresholdvalue is separated from near 127 and 128 toward 0, while the numbers ofthe white partial areas and the black partial areas near 127 and 128 arein the same level, and the number of the white partial areas decreasesas the second threshold value is separated from near 127 and 128 toward255. The reason that the graph illustrated in FIG. 59 has plural peaksis because the number of the partial areas detected by the figures thatconfigure the artificially disposed figure center markers is added tothe number of partial areas detected by the noise included in thebinarized image.

With respect to the graph illustrated in FIG. 59, FIG. 60 is a diagramillustrating a graph in which the number of the figure center markersdetected by the marker detecting portion 255 in Step S2180 is plottedfor each second threshold value. In FIG. 60, the horizontal axisindicates the second threshold value (that is, luminance selected inStep S2140) and the vertical axis indicates the number of theaforementioned figure center markers.

As illustrated in FIG. 60, this graph has two peaks. The first peak is apeak near 127 and 128 in which the second threshold value is in themiddle from 0 to 255. The aforementioned peak is a peak expressed byerroneous detection of the figure center marker since the figure centerin a case where the partial area detected by the noise included in thebinarized image is set as the figure accidently belongs to three or morepredetermined ranges. The erroneous detection of the figure centermarker becomes greater as the number of partial areas detected by thenoise included in the binarized image becomes greater and becomes lessas the number of the partial areas detected by the noise included in thebinarized image becomes less. That is, the number of erroneous detectionof the figure center markers is proportional to the number of thepartial areas detected by the noise included in the binarized image.Therefore, the aforementioned peak is expressed near 127 and 128 inwhich the second threshold value is in the middle from 0 to 255.Meanwhile, the second peak is a peak expressed by the detection of theartificially disposed figure center marker.

The evaluation value calculating portion 256 calculates the evaluationvalue illustrated in FIG. 61 based on the number of the partial areasillustrated in FIGS. 59 and 60 and the number of the figure centermarkers. FIG. 61 is a diagram illustrating an example of the graph inwhich an evaluation value calculated by the evaluation value calculatingportion 256 in Step S2180 is plotted for each second threshold value. InFIG. 61, the horizontal axis indicates the second threshold value (thatis, luminance selected in Step S2140) and the vertical axis is indicatedin the aforementioned evaluation value. With respect to the verticalaxis of the graph illustrated in FIG. 61, in order to securelyillustrate the change of the graph, the value of the evaluation value isconverted to a scale of 100 times.

From FIG. 61, it is understood that the peaks expressed by the noiseincluded in the binarized image disappear near 127 and 128 in which thesecond threshold value in the middle of from 0 to 255, and only a peakPk that is expressed by detection of the artificially disposed figurecenter marker is expressed. This is because the number of erroneousdetections of the figure center markers is proportional to the number ofthe partial areas detected by the noise included in the binarized imageand thus the number obtained by dividing the number of theaforementioned erroneous detections by the number of the partial areasdetected by the noise included in the binarized image tends to besubstantially constant regardless of the number of the second thresholdvalue. Accordingly, the control portion 236 can detect the entire figurecenter markers from the binarized image by binarizing the grayscaleimage using the second threshold value calculated by the evaluationvalue in the peak Pk.

By using this, after the evaluation value is calculated for each secondthreshold value selected in Step S2140 with respect to the entire searcharea, that is, the entire captured image (after processes from StepsS2130 to S2220 end), the first threshold value determining portion 257determines the current maximum threshold value to be the first thresholdvalue (Step S2230) and ends the process. The aforementioned maximumthreshold value is, for example, a second threshold value calculated bythe evaluation value in the peak Pk illustrated in FIG. 61.

In the flow chart illustrated in FIG. 58, a process in which the robotcontrol device 230 determines the first threshold value based on thecaptured image stereoscopically captured by the third image capturingportion 23 and the fourth image capturing portion 24, that is, thecaptured image including the marker (in this example, each of themarkers Mk11 to MkN) of which the position is to be detected in thepredetermined work. However, the process for determining the firstthreshold value by the robot control device 230 is not limited thereto,and may be a process for determining the first threshold value based onanother image different from the aforementioned captured image andincluding the aforementioned marker. In this case, the image capturingcondition of the aforementioned image is desirably similar to the imagecapturing condition of the aforementioned captured image. The imagecapturing condition is, for example, a condition determined according todifference in brightness of lighting on a portion or all of the one ormore markers included in the aforementioned captured image when thecaptured image is captured, difference in disposing positions of aportion or all of the one or more markers included in the capturedimage, difference in day and time or season when the captured image iscaptured, or difference in a location at which the captured image iscaptured.

With Respect to Flow of Process in which the Control Portion 236 Causesthe Robot 220 to Perform Predetermined Work

Hereinafter, with reference to FIG. 62, the process in which the controlportion 236 causes the robot 220 to perform the predetermined work basedon the first threshold value determined by the process in the flow chartillustrated in FIG. 58 is described. FIG. 62 is a flow chartillustrating an example of a flow of the process in which the controlportion 236 causes the robot 220 to perform a predetermined work.Hereinafter, the flow of the process of the control portion 236 afterthe first threshold value is determined by the process in the flow chartillustrated in FIG. 58 is described.

The image capturing control portion 40 causes the third image capturingportion 23 and the fourth image capturing portion 24 to stereoscopicallycapture the capture range including the work area illustrated in FIG. 50(Step S300). Subsequently, the image acquisition portion 42 acquires thecaptured image stereoscopically captured by the third image capturingportion 23 and the fourth image capturing portion 24 in Step S300 fromthe third image capturing portion 23 and the fourth image capturingportion 24 (Step S310). The captured image acquired by the imageacquisition portion 42 in Step S310 may be a captured image (forexample, image in which position of marker is different or image inwhich background is different) in which a subject different from thecaptured image dealt in the process in the flow chart illustrated inFIG. 58 is captured or may be a captured image in which the same subjectis captured. In this example, a case where the captured image acquiredby the image acquisition portion 42 in Step S310 is a captured image inwhich the same subject as the captured image dealt in the process in theflow chart illustrated in FIG. 58 is captured is described.

Subsequently, the grayscale process portion 250 converts the capturedimage acquired by the image acquisition portion 42 in Step S310 into thegrayscale image. The binarization process portion 252 converts thegrayscale image converted by the grayscale process portion 250 into thebinarized image based on the first threshold value determined by thefirst threshold value determining portion 257 in advance. The markerdetecting portion 255 detects each of the markers Mk11 to MkN which arethe figure center markers illustrated in FIG. 50, from the binarizedimage converted by the binarization process portion 252 based on thefirst threshold value (Step S320).

Subsequently, the robot control portion 46 calculates respectivepositions of the figure centers of the markers Mk11 to MkN that themarker detecting portion 255 detects in Step S320 as respectivepositions of the target objects O1 to ON illustrated in FIG. 50 (StepS330). Subsequently, the robot control portion 46 causes the first armto grip the target objects O1 to ON one by one, based on the respectivepositions of the target objects O1 to ON calculated in Step S330 andsupplies the material supplying area (not illustrated) (Step S340). Therobot control portion 46 reads the information illustrating the positionof the material supplying area from the storage portion 32 in advance.The robot control portion 46 causes the first arm to supply the targetobjects O1 to ON to the material supplying area and ends the process.

In this manner, the control portion 236 causes the robot 220 to performa predetermined work based on the first threshold value determined bythe process in the flow chart illustrated in FIG. 58. In the flow chartillustrated in FIG. 62, a process in which the robot control device 230binarizes the aforementioned captured image, detects the markers (inthis example, each of the markers Mk11 to MkN), and performs apredetermined work based on the detected aforementioned marker, usingthe first threshold value determined based on the captured image inwhich the capture range is captured by the third image capturing portion23 and the fourth image capturing portion 24. However, the process ofdetecting the aforementioned marker by the robot control device 230 isnot limited thereto, and may be a process of binarizing theaforementioned captured image and detecting the aforementioned markerusing the first threshold value determined based on another imagedifferent from the aforementioned captured image.

Application of Determination of First Threshold Value

Hereinafter, an application of the determination of the first thresholdvalue is described with reference to FIG. 63. FIG. 63 is a diagramillustrating an example of the captured image in which the capture rangeincluding three trays of which circumferences are surrounded by pluralfigure center markers is captured. In FIG. 63, a captured image G4includes a tray TR1 on which plural target objects OB1 are disposed, atray TR2 on which plural target objects OB2 are disposed, and a tray TR3on which plural target objects OB3 are disposed. Respectivecircumferences of the trays TR1 to TR3 are surrounded by plural figurecenter markers.

After the captured image G4 is acquired, the control portion 236determines the luminance appropriate for detecting the figure centermarker surrounding the respective circumferences of the trays TR1 to TR3as the first threshold value, by the processes in the flow chartillustrated in FIG. 58. At this point, in a case where there are pluralsearch areas selected in Step S2130 illustrated in FIG. 58 and each ofthe trays TR1 to TR3 is included in the different search areas, thecontrol portion 236 determines the first threshold value for each of thetrays TR1 to TR3.

It is likely that the luminance appropriate for detecting the figurecenter markers surrounding respective circumferences of the trays TR1 toTR3 is luminance appropriate for detecting an object disposed on each ofthe trays TR1 to TR3. Therefore, the control portion 236 determinesluminance appropriate for detecting the figure center markerssurrounding the respective circumferences of the trays TR1 to TR3 asluminance appropriate for detecting objects respectively disposed on thetrays TR1 to TR3. In this case, the aforementioned first threshold valueis luminance appropriate for detecting the objects respectively disposedon the trays TR1 to TR3.

In this example, the objects respectively disposed on the trays TR1 toTR3 are respectively the plural target objects OB1, the plural targetobjects OB2, and the plural target objects OB3 illustrated in FIG. 63.The control portion 236 determines luminance appropriate for detectingthe objects respectively disposed on the trays TR1 to TR3 as the firstthreshold value, by the process in the flow chart illustrated in FIG.58. The control portion 236 detects objects disposed on each of thetrays TR1 to TR3, based on the determined first threshold value.Accordingly, the robot control device 230 can detect the objectsdisposed on each of the trays TR1 to TR3 with high accuracy. The controlportion 236 calculates respective positions of the detected objects,causes the robot 220 to grip the aforementioned objects one by one basedon the calculated positions, and supplies the aforementioned objects tothe material supplying area.

The robot control device 230 described in the present embodiment has aconfiguration of determining the first threshold value which is thethreshold value obtained by binarizing at least a portion of thecaptured image in which one or more figure center markers are includedbased on the number of the figure center markers detected from theaforementioned captured image but may have a configuration ofdetermining the threshold value for multivaluing at least a portion ofthe aforementioned captured image based on the number of the figurecenter markers detected from the aforementioned captured image. Themultivalue processing is processing of converting the grayscale imageinto an image with three or more colors such as ternary or teradicprocessing. For example, ternary processing which is an example ofmultivaluing processing of converting a color of a pixel havingluminance of a predetermined threshold value X11 or greater and lessthan a predetermined threshold value X12 on the grayscale image into afirst color (for example, white), converting a color of the pixel havingluminance of the predetermined threshold value X12 or greater and lessthan a predetermined threshold value X13 on the aforementioned grayscaleimage into a second color (for example, red), and converting a color ofa pixel having luminance of the predetermined threshold value X13 orgreater and less than a predetermined threshold value X14 on theaforementioned grayscale image into a third color (for example, black).In this case, the robot control device 230 determines each of thesethreshold value X11 to the threshold value X14 based on the number ofthe figure center markers detected from the captured image included inone or more figure center markers.

The robot control device 230 described in the present embodiment mayhave a configuration of determining whether the figure center marker canbe detected even if the binarization process is not performed anddetecting the figure center marker from the captured image according tothis determination result before the process of Step S2100 in the flowchart illustrated in FIG. 58. In this case, the robot control device 230detects the figure center marker from the captured image that the imageacquisition portion 42 acquires from the third image capturing portion23 and the fourth image capturing portion 24 before the process of StepS2100. The robot control device 230 determines whether the detection ofthe figure center marker by the aforementioned detection succeeds ornot. In a case where it is determined that the detection of the figurecenter marker succeeds, the robot control device 230 executes theprocesses of Steps S330 to S340 in the flow chart illustrated in FIG. 62based on the detected figure center marker without determining the firstthreshold value (without performing binarizing). Meanwhile, in a casewhere it is determined that the detection of the figure center markerfails, the robot control device 230 executes the processes of StepsS2100 to S2230 in the flow chart illustrated in FIG. 58 and determinesthe first threshold value. The robot control device 230 executes theprocesses of Steps S300 to S340 illustrated in FIG. 62, based on thedetermined first threshold value.

As described above, the robot control device 230 (or image processingdevice independent from the robot control device 230) of the robot 220according to the present embodiment determines the first threshold valuewhich is the threshold value for multivaluing at least a portion of theimage (in this example, captured image described above) that the one ormore markers include (in this example, figure center marker) based onthe number of the detected markers from the aforementioned image or animage (in this example, captured image in which a subject is captureddifferent from the image in which one or more markers are included)different from the aforementioned image. Accordingly, the robot controldevice 230 can detect the marker with high accuracy.

The robot control device 230 determines the first threshold value basedon the number of the markers detected from the image according to thechange of the second threshold value which is the temporary thresholdvalue used for determining the first threshold value. Accordingly, therobot control device 230 detects the marker with high accuracy based onthe first threshold value determined based on the number of the markersdetected from the image according to the change of the second thresholdvalue.

The robot control device 230 determines the first threshold value basedon the number of the markers and the number of the areas detected whenthe aforementioned image is multivalued using the second thresholdvalue. Accordingly, the robot control device 230 can detect the markerwith high accuracy based on the first threshold value determined basedon the number of the markers and the number of the areas detected whenthe aforementioned image is multivalued using the second thresholdvalue.

The robot control device 230 determines the first threshold value whichis the threshold value obtained by binarizing at least a portion of theimage in which the one or more markers are included, based on the numberof the markers detected from the aforementioned image or the imagedifferent from the aforementioned image. Accordingly, the robot controldevice 230 can detect the marker from the image binarized using thefirst threshold value.

The robot control device 230 determines the first threshold value whichis the threshold value obtained by multivaluing at least a portion ofthe image in which the one or more figure center markers are includedbased on the number of the markers detected from the aforementionedimage or the image different from the aforementioned image. Accordingly,the robot control device 230 can detect the figure center marker withhigh accuracy.

The robot control device 230 detects the target object from the imageusing the first threshold value. Accordingly, the robot control device230 can detect the target object with high accuracy.

The image process portion 244 in the control portion 236 may beindependent from the robot control device 230 as the image processingdevice. In this case, the robot 220, the robot control device 230, andthe aforementioned image processing device configure the robot system.In this case, the image processing device may have a configuration ofoutputting the information based on the detected marker to anotherdevice different from the robot control device 230 and causing theaforementioned another device to display the aforementioned informationsuch as augmented reality (AR). The information based on the detectedmarker is information associated with the aforementioned marker.

A portion or all of the first image capturing portion 21, the secondimage capturing portion 22, the third image capturing portion 23, andthe fourth image capturing portion 24 may be an image capturing portionindependent from the robot 220. In this case, the robot 220, the imagecapturing portion independent from the robot 220, the robot controldevice 230, and the image processing device configure the robot system.

Above, embodiments of the invention are described in detail withreference to the drawings. However, the specific configurations are notlimited to the embodiments described above, and can be changed,modified, or deleted without departing from the gist of the invention.

Programs for realizing functions of arbitrary components in the devices(for example, the robot control device 30 of the robot 20 or an imageprocessing device independent from the robot control device 30)described above are stored in a computer readable recording medium andexecuted by causing these programs to be read by a computer system andto be executed.

Here, the “computer system” includes hardware such as an operatingsystem (OS) or a peripheral device. The “computer readable recordingmedium” refers to a storage device such as a portable medium such as aflexible disk device, a magneto-optic disk, ROM, and compact disk(CD)-ROM, and a hard disk built in a computer system. The “computerreadable recording medium” includes a medium storing a program for acertain period of time, such as a server in a case where the program istransmitted via a network such as the Internet or a communicationcircuit such as a telephone circuit or a volatile memory (RAM) inside acomputer system that becomes a client.

The program may be transmitted to another computer system via atransmission medium or by transmission waves in the transmission medium,from the computer system in which the program is stored in the storagedevice. Here, the transmission medium that transmits the program refersto a medium having a function of transmitting information, such as thenetwork such as the Internet (communication network) or a communicationcircuit (communication line) such as a telephone circuit.

The program may be a program for realizing a portion of the functiondescribed above. The program may be a program realizing a combination ofthe function with a program stored in the computer system, that is, aso-called differential file (differential program).

The entire disclosure of Japanese Patent Application No. 2015-204360,filed Oct. 16, 2015, No. 2015-205301, filed Oct. 19, 2015 and No.2015-204358, filed Oct. 16, 2015 are expressly incorporated by referenceherein.

What is claimed is:
 1. A control device including an image processingdevice that detects a marker, wherein the marker includes a first figurein which three or more figure centers are overlapped with each other anda data area provided on an internal or external portion of the firstfigure, and the image processing device detects the first figure,detects the figure centers of the first figure, determines amultiplicity based upon the detected figure centers, and detects thedata area based on the figure centers of the first figure and thedetermined multiplicity, wherein the multiplicity comprises a number ofoverlapped figure centers corresponding to the detected figure centers,wherein the control device causes actuation of at least one devicecontrolled by the control device according to a code within the dataarea.
 2. The control device according to claim 1, wherein the imageprocessing device detects the data area based on a direction passingthrough the figure centers of the first figure.
 3. The control deviceaccording to claim 2, wherein the data area is detected by changing thedirection with the figure centers of the first figure as a center. 4.The control device according to claim 1, wherein the data area has afigure having a smaller number of the overlapped figure centers comparedwith the first figure.
 5. The control device according to claim 1,wherein the marker has a second figure in which three or more figurecenters are overlapped with each other, and the data area is positionedbetween the first figure and the second figure.
 6. The control deviceaccording to claim 5, wherein the data area is detected based on adirection in which the figure centers of the first figure and the figurecenters of the second figure are connected to each other.
 7. A robotcomprising: the control device according to claim
 1. 8. A robotcomprising: the control device according to claim
 2. 9. A robotcomprising: the control device according to claim
 3. 10. A robotcomprising: the control device according to claim
 4. 11. A robotcomprising: the control device according to claim
 5. 12. A robotcomprising: the control device according to claim
 6. 13. A robot systemcomprising: an image capturing device capturing a captured imageincluding a marker; and a robot according to claim
 7. 14. An objectcomprising: a marker disposed on the object, the marker comprising: afirst figure in which three or more figure centers are overlapped witheach other and arranged over the marker to indicate a multiplicityassociated with the three or more figure centers, the multiplicitycomprising a number of overlapped figure centers corresponding to thefirst figure, and a data area provided on an external portion of thefirst figure, the data area including one or more code figuresindicative of an operation to be performed by a robot after the robotdetects the data area.
 15. The object according to claim 14, comprising:a second figure in which three or more figure centers are overlappedwith each other, wherein the data area is positioned between the firstfigure and the second figure, wherein the first figure and the secondfigure are disposed on the object.
 16. A robot comprising: an imagecapturing device that is configured to stereoscopically capture animage; a robot arm; and a control device that is configured to: detect amarker within image, the marker including a first figure in which threeor more figure centers are overlapped with each other; determine atleast one figure center of the three or more figure centers based uponthe stereoscopically captured image; determine a multiplicity based uponthe determined at least one figure center, the multiplicity comprising anumber of overlapped figure centers corresponding to the first figure;determine a data area associated with the marker based upon the at leastone figure center and the multiplicity; determine a posture of themarker within a robot coordinate system based upon the determined atleast one figure center; and cause the robot arm to actuate based upon acode within the data area.
 17. The robot as recited in claim 16, whereinthe control device is further configured to calculate at least one of aposition or a posture of the marker based upon the first figure.
 18. Therobot as recited in claim 16, wherein the control device is furtherconfigured to detect a sign comprising a portion of a fixed code withinthe marker and along a periphery of the first figure based upon the atleast one figure center and the multiplicity.
 19. The robot as recitedin claim 18, wherein the control device is further configured to detectan entire fixed code based on the determined at least one figure centerand the sign, wherein the control device causes the image capturingdevice to capture the entire fixed code by operating the image capturingdevice within a predetermined search range in a direction from the atleast one figure center to the sign.